| From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Show default privileges in information schema |
| Date: | 2012-01-27 20:02:45 |
| Message-ID: | E1Rqs0T-0007AQ-Eo@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2012-01-28 00:47:12 | pgsql: Undo 8.4-era lobotomization of subquery pullup rules. |
| Previous Message | Peter Eisentraut | 2012-01-27 19:41:12 | pgsql: Revert unfortunate whitespace change |