pgsql: Support default ACLs in get_object_address

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Support default ACLs in get_object_address
Date: 2015-03-11 22:24:29
Message-ID: E1YVp3F-0002Rn-DN@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Support default ACLs in get_object_address

In the spirit of 890192e99af, this time add support for the things
living in the pg_default_acl catalog. These are not really "objects",
but they show up as such in event triggers.

There is no "DROP DEFAULT PRIVILEGES" or similar command, so it doesn't
look like the new representation given would be useful anywhere else, so
I didn't try to use it outside objectaddress.c. (That might be a bug in
itself, but that would be material for another commit.)

Reviewed by Stephen Frost.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4464303405f1f886d63f8316386621cd7436c5d6

Modified Files
--------------
src/backend/catalog/objectaddress.c | 137 ++++++++++++++++++++++++--
src/backend/commands/event_trigger.c | 1 +
src/include/nodes/parsenodes.h | 1 +
src/test/regress/expected/event_trigger.out | 4 +
src/test/regress/expected/object_address.out | 17 +++-
src/test/regress/sql/event_trigger.sql | 2 +
src/test/regress/sql/object_address.sql | 7 +-
7 files changed, 158 insertions(+), 11 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2015-03-11 22:31:11 pgsql: PL/Python: Fix regression tests for Python 3
Previous Message Alvaro Herrera 2015-03-11 21:28:21 Re: pgsql: PL/Python: Avoid lossiness in float conversion