A PL/pgSQL function for conveniently querying over multiple schemas