From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Re: [COMMITTERS] pgsql: pg_event_trigger_dropped_objects: Add name/args output columns
Date: Wed, 31 Dec 2014 17:17:59 -0500
Message-ID: <1546.1420064279@sss.pgh.pa.us> (raw)
In-Reply-To: <18262.1419978446@sss.pgh.pa.us>
References: <E1Y63dC-00036r-BX@gemulon.postgresql.org>
<20141230221638.GV1645@alvh.no-ip.org>
<18262.1419978446@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
I wrote:
> Alvaro Herrera <alvherre@2ndquadrant.com> writes:
>> Alvaro Herrera wrote:
>>> pg_event_trigger_dropped_objects: Add name/args output columns
>> This is causing buildfarm member dunlin to fail:
>> ...
>> 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.
> But is there any reason to think the failure on dunlin has anything to do
> with default ACLs?
I substituted a more detailed version of the error message, which soon
confirmed your guess that this had something to do with default ACLs:
http://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=treepie&dt=2014-12-31%2021%3A15%3A49
What seems to be happening is that the rowsecurity test installs an event
trigger, and if that happens to be active when the "DROP SCHEMA testns"
in privileges.sql executes, you get a failure because of the default
privileges attached to the schema. The event trigger is very short-lived,
so the failure is hard to hit; nonetheless this is at least the third such
failure in the buildfarm.
I've "fixed" this by the expedient of making rowsecurity not run as part
of a parallel group. We cannot have regression tests that trigger such
irreproducible failures.
We should not leave it there though. The event triggers in rowsecurity
think they only fire for policy-related events, so how come we're seeing
getObjectIdentityParts invoked on a default ACL? And if that is expected
behavior, how is it you figure it'd be OK to not have an implementation
for every possible object type?
In the long run it might be interesting to have a test module that runs
the entire core regression suite with some appropriate event trigger in
place. We are clearly far away from being able to do that yet, though,
and in the meantime this is not how I want to find out about event-trigger
bugs. Creating short-lifespan event triggers has to be something that
happens only in regression tests that run by themselves.
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: pg_event_trigger_dropped_objects: Add name/args output columns
In-Reply-To: <1546.1420064279@sss.pgh.pa.us>
References: <E1Y63dC-00036r-BX@gemulon.postgresql.org> <20141230221638.GV1645@alvh.no-ip.org> <18262.1419978446@sss.pgh.pa.us> <1546.1420064279@sss.pgh.pa.us>
* 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