pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Dimitri Fontaine <dimitri@2ndQuadrant.fr>
To: Christopher Browne <cbbrowne@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Subject: Re: Event Triggers: adding information
Date: Tue, 29 Jan 2013 00:19:07 +0100
Message-ID: <m2txq0aob8.fsf@2ndQuadrant.fr> (raw )
In-Reply-To: <CAFNqd5U7fGviRXssSE6TPHio6NUvaZqq5zu3E598f1KwTFHJXA@mail.gmail.com >
References: <m2txrsdzxa.fsf@2ndQuadrant.fr >
<20130104205251.GB9191@alvh.no-ip.org >
<m28v88pqin.fsf@2ndQuadrant.fr >
<20130109165829.GB4490@alvh.no-ip.org >
<CA+TgmobykpymdGyfbCDEfS6+-50X-AKYTdK88fjMS4-mY5SBdw@mail.gmail.com >
<m2ehhkrfqk.fsf@2ndQuadrant.fr >
<CA+TgmobfeB_YpgMv5NjW52tG36Hg_DY=jq0XDkE5zwCstPQ4pg@mail.gmail.com >
<m2pq14m7sx.fsf@2ndQuadrant.fr >
<CA+TgmoYEW583z+oisToCYQMz2grzpavdXrCi3-W2D_+nucVhzQ@mail.gmail.com >
<m2k3rbhh79.fsf@2ndQuadrant.fr >
<CA+TgmoZYFhn=DyenBLr8KUZXYHtgjo-O8YE-7y61WKR6F05UQA@mail.gmail.com >
<m21udesaz3.fsf@2ndQuadrant.fr >
<CA+TgmoYimdGCiKFbKFbcZ_pJ5jT+sryxN40p24i8efq8j6BNgA@mail.gmail.com >
<m2k3r27tej.fsf@2ndQuadrant.fr >
<CA+TgmoZz6MXQ5zX6dopc_xaHVkdwhEhgDFJeAWsRNs+N7e_ueA@mail.gmail.com >
<m238xptd28.fsf@2ndQuadrant.fr >
<CA+TgmoZ4U6Bwe-+HhUFWaj2fhG5S=Wo5zK5KR0x7RyU9qphKAQ@mail.gmail.com >
<m2622io6fc.fsf@2ndQuadrant.fr >
<CA+TgmoZYxSEm2Pzpif-KGGBpFHAxODqSpJL+zT-ic_QgAH-8kA@mail.gmail.com >
<m27gmyjqmt.fsf@2ndQuadrant.fr >
<CAFNqd5U7fGviRXssSE6TPHio6NUvaZqq5zu3E598f1KwTFHJXA@mail.gmail.com >
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Christopher Browne <cbbrowne@gmail.com> writes:
> I'm poking at event triggers a bit; would like to set up some examples
> (and see if they
> work, or break down badly; both are interesting results) to do some
> validation of schema
> for Slony.
Cool, thanks!
> What I'm basically thinking about is to set up some event triggers that run on
> DROP TABLE / DROP SEQUENCE, and see about cleaning up the replication
> side of things (e.g. - inject a request to drop the table/sequence
> from replication).
Sure. In what got commited from the current patch series, you will only
know that a DROP TABLE (or DROP SEQUENCE) occured, and we're trying to
get to an agreement with Robert if we should prefer to add visibility to
such events that occurs in a CASCADE statement or rather add the OID
(and maybe the name) of the Object that's going to be dropped.
Your opinion is worth a lot on that matter, if you have one to share! :)
> I have a bit of a complaint as to what documentation is included; I don't see
> any references in the documentation to ddl_command_start / ddl_command_end,
> which seem to be necessary values for event triggers.
What we have now here:
http://www.postgresql.org/docs/devel/static/event-trigger-matrix.html
http://www.postgresql.org/docs/devel/static/sql-createeventtrigger.html
http://www.postgresql.org/docs/devel/static/plpgsql-trigger.html#PLPGSQL-EVENT-TRIGGER
Is it not visible enough, or really missing the point?
> I'd tend to think that there should be a new subsection in the "man page" for
> CREATE TRIGGER that includes at least two fully formed examples of event
> triggers, involving the two events in question. Is change of that
> sort in progress?
The event triggers are addressed in a whole new chapter of the docs,
maybe that's why you didn't find the docs?
--
Dimitri Fontaine
http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support
--
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 (114+ messages) latest in thread
Message-ID: <m2txq0aob8.fsf@2ndQuadrant.fr>
Permalink: ../m2txq0aob8.fsf@2ndQuadrant.fr/
Also on: postgresql.org/message-id/m2txq0aob8.fsf@2ndQuadrant.fr
copy link · copy postgr.es
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 using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: dimitri@2ndQuadrant.fr, cbbrowne@gmail.com
Subject: Re: Event Triggers: adding information
In-Reply-To: <m2txq0aob8.fsf@2ndQuadrant.fr>
* 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