pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: pg_event_trigger_dropped_objects: Add name/args output columns
Date: Tue, 30 Dec 2014 19:16:38 -0300
Message-ID: <20141230221638.GV1645@alvh.no-ip.org> (raw)
In-Reply-To: <E1Y63dC-00036r-BX@gemulon.postgresql.org>
References: <E1Y63dC-00036r-BX@gemulon.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Alvaro Herrera wrote:
> pg_event_trigger_dropped_objects: Add name/args output columns
> 
> These columns can be passed to pg_get_object_address() and used to
> reconstruct the dropped objects identities in a remote server containing
> similar objects, so that the drop can be replicated.

This is causing buildfarm member dunlin to fail:

================== pgsql.build/src/test/regress/regression.diffs ===================
inline patch 1: /buildfarm/root/HEAD/pgsql.build/src/test/regress/results/privileges.out (+1/-0 lines) download inline-1.patch*** /buildfarm/root/HEAD/pgsql.build/src/test/regress/expected/privileges.out Tue Dec 30 13:05:24 2014 --- /buildfarm/root/HEAD/pgsql.build/src/test/regress/results/privileges.out Tue Dec 30 13:10:49 2014 *************** *** 1323,1328 **** --- 1323,1329 ---- DROP SCHEMA testns CASCADE; NOTICE: drop cascades to table testns.acltest1 + ERROR: requested object address for object type that cannot support it SELECT d.* -- check that entries went away FROM pg_default_acl d LEFT JOIN pg_namespace n ON defaclnamespace = n.oid WHERE nspname IS NULL AND defaclnamespace != 0;
No other member so far has reported a problem here. Not sure if that's the strangest bit, or the fact that dunlin is reporting anything in the first place. I can reproduce the problem quite simply by creating an event trigger on sql_drop and then try to drop an object not supported by getObjectIdentityParts -- in this case it's a default ACL for tables in the schema being dropped. My hope was that this check would help us detect new object types that did not have a working get_object_address representation, but since there are already cases that don't have it, it's currently bogus. We could add the default ACL support without too much effort, I think, but it would take even less effort to just remove the check. Another possible option is to mark ALTER DEFAULT PRIVILEGES as an unsupported command in event triggers. I'm not sure why we have it, particularly since we don't have GRANT and REVOKE ... but then my DDL deparsing patch is supposed to add support for GRANT and REVOKE, so I'm not really proposing this. Any strong opinions? -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

view thread (7+ messages)  latest in thread

Message-ID: <20141230221638.GV1645@alvh.no-ip.org>
Permalink:  ../20141230221638.GV1645@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20141230221638.GV1645@alvh.no-ip.org

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@2ndquadrant.com, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: pg_event_trigger_dropped_objects: Add name/args output columns
  In-Reply-To: <20141230221638.GV1645@alvh.no-ip.org>
  References: <E1Y63dC-00036r-BX@gemulon.postgresql.org> <20141230221638.GV1645@alvh.no-ip.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox