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

Поиск
Список
Период
Сортировка
От Dave Page
Тема ERROR: argument to pg_get_expr() must come from system catalogs
Дата
Msg-id AANLkTilk5ZNJ_4wTMKCLJHFdEtAsJz3de6t3lhkCAT2i@mail.gmail.com
обсуждение исходный текст
Ответы Re: ERROR: argument to pg_get_expr() must come from system catalogs  (Thom Brown <thombrown@gmail.com>)
Re: ERROR: argument to pg_get_expr() must come from system catalogs  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: ERROR: argument to pg_get_expr() must come from system catalogs  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
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
ONdes.objoid=pr.oid
 

Run as a regular user though, we get the error. If I remove the join,
it works fine as the normal user. This is in a database owned by the
regular user.

Am I missing something obvious, or is there a bug here? pg_get_expr is
used pretty extensively in pgAdmin, so we're obviously keen to ensure
it works :-)

-- 
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise Postgres Company


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Yeb Havinga
Дата:
Сообщение: Re: explain.c: why trace PlanState and Plan trees separately?
Следующее
От: Thom Brown
Дата:
Сообщение: Re: ERROR: argument to pg_get_expr() must come from system catalogs