Re: ERROR: argument to pg_get_expr() must come from system catalogs
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dave Page <dpage@pgadmin.org>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2010-07-29T23:17:27Z
Lists: pgsql-hackers
Dave Page <dpage@pgadmin.org> writes: > We had a report of the above error from a pgAdmin user testing > 1.12.0b3 with PG 9.0b3. The (highly simplified) query below works fine > as a superuser: > SELECT pg_get_expr(proargdefaults, 'pg_catalog.pg_class'::regclass) > FROM pg_proc pr > LEFT OUTER JOIN pg_description des ON des.objoid=pr.oid > Run as a regular user though, we get the error. I've applied a (rather hurried) patch for this for 9.0beta4. regards, tom lane