Re: Provide read-only access to system catalog tables

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Provide read-only access to system catalog tables
Дата
Msg-id CAKFQuwYOfH3Gr3XB3Waf1gM6xn9ntZ6_mc6mwOiw=-6531S=tQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Provide read-only access to system catalog tables  (Chirag Karkera <chiragkrkr102@gmail.com>)
Ответы Re: Provide read-only access to system catalog tables  (Chirag Karkera <chiragkrkr102@gmail.com>)
Список pgsql-hackers
On Tue, May 17, 2022 at 6:21 AM Chirag Karkera <chiragkrkr102@gmail.com> wrote:
Thanks David for your reply!

But when i created a role i am not able to view objects under information_schema.* 

I mean I am not able to view the data, I can see only the column names. 


Which goes to demonstrate you have permissions.  But information_schema uses the permissions of the executing user to decide what to show - it is pre-filtered (and doesn't address PostgreSQL-only features).  If you need less restrictive behavior your best bet is to just use the system catalogs.  Those give you everything.

David J.

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

Предыдущее
От: Chirag Karkera
Дата:
Сообщение: Re: Provide read-only access to system catalog tables
Следующее
От: Ranier Vilela
Дата:
Сообщение: Re: Avoid unecessary MemSet call (src/backend/utils/cache/relcache.c)