can't we use `'public'` here too if `table.schema` is not set? would make the code a bit more readable IMHO.