Re: event trigger API documentation? - Mailing list pgsql-hackers

From Dimitri Fontaine
Subject Re: event trigger API documentation?
Date
Msg-id m2k3nzluqc.fsf@2ndQuadrant.fr
Whole thread Raw
In response to Re: event trigger API documentation?  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Without going into too many details (because I don't have them yet), I
> was thinking about triggering an external test suite whenever there is a
> schema change in the database.

So if all you want to know about is that something did change in the
schema to trigger your action, yes you can do it. I would go as far as
to propose that you consider registering an event in a PGQ queue at the
time when the ddl event occurs, so that you can have your test suite run
be triggers from the outside of the database at its leisure.

If you want to stay within PostgreSQL offering proper, a NOTIFY would
do, and you can do that in PLpgSQL too.

Regards,
-- 
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support



pgsql-hackers by date:

Previous
From: Dimitri Fontaine
Date:
Subject: Re: event trigger API documentation?
Next
From: Alvaro Herrera
Date:
Subject: Re: event trigger API documentation?