Skip site navigation (1) Skip section navigation (2)

Re: ERROR: argument to pg_get_expr() must come from system catalogs

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ERROR: argument to pg_get_expr() must come from system catalogs
Date: 2010-07-29 23:17:27
Message-ID: 28698.1280445447@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Dave Page <dpage(at)pgadmin(dot)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

In response to

Responses

pgsql-hackers by date

Next:From: Kevin GrittnerDate: 2010-07-29 23:56:00
Subject: review patch: Distinguish between unique indexes and unique constraints
Previous:From: Tom LaneDate: 2010-07-29 21:35:07
Subject: Re: reducing NUMERIC size for 9.1

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group