[BUGS] information_schema.columns.character_octet_length unavailable if noaccess to pg_database

Поиск
Список
Период
Сортировка
От Fabien Meghazi
Тема [BUGS] information_schema.columns.character_octet_length unavailable if noaccess to pg_database
Дата
Msg-id CAMEsWemTUzS8ukvK1aZJpK_pqS3VS0PoddwHHSejWmC5eNL0Cw@mail.gmail.com
обсуждение исходный текст
Ответы Re: [BUGS] information_schema.columns.character_octet_length unavailable if no access to pg_database  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Tested against PostgreSQL version 9.6 and 9.5

On any database, when the pg_database access is restraint for standard users:

    psql> REVOKE ALL ON pg_database FROM public;


it not possible anymore to query the field character_octet_length from the view information_schema.columns:


    psql> SELECT character_octet_length FROM information_schema.columns;
    ERROR:  permission denied for relation pg_database
    CONTEXT:  SQL function "_pg_char_octet_length" statement 1


The same problem can be found in information_schema.domains.

--

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

Предыдущее
От: Ashesh Vashi
Дата:
Сообщение: Re: [BUGS] pgAdmin 4 issues
Следующее
От: Krystian Szladewski
Дата:
Сообщение: [BUGS] "could not open relation with OID XXX" when using recreated index insql function