pgsql: Show default privileges in information schema

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Show default privileges in information schema
Дата
Msg-id E1Rqs0T-0007AQ-Eo@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Show default privileges in information schema

Hitherto, the information schema only showed explicitly granted
privileges that were visible in the *acl catalog columns.  If no
privileges had been granted, the implicit privileges were not shown.

To fix that, add an SQL-accessible version of the acldefault()
function, and use that inside the aclexplode() calls to substitute the
catalog-specific default privilege set for null values.

reviewed by Abhijit Menon-Sen

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b376ec6fa57bc76037014ede29498e2d1611968e

Modified Files
--------------
src/backend/catalog/information_schema.sql |   18 ++++----
src/backend/utils/adt/acl.c                |   58 ++++++++++++++++++++++++++++
src/include/catalog/catversion.h           |    2 +-
src/include/catalog/pg_proc.h              |    2 +
src/include/utils/acl.h                    |    1 +
src/test/regress/expected/foreign_data.out |    8 ++--
src/test/regress/sql/foreign_data.sql      |    8 ++--
7 files changed, 79 insertions(+), 18 deletions(-)


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Revert unfortunate whitespace change
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Undo 8.4-era lobotomization of subquery pullup rules.