Re: External Replication - Mailing list pgsql-hackers

From Dimitri Fontaine
Subject Re: External Replication
Date
Msg-id m2vcf3fl4m.fsf@2ndQuadrant.fr
Whole thread Raw
In response to Re: External Replication  ("md@rpzdesign.com" <md@rpzdesign.com>)
Responses Re: External Replication  ("md@rpzdesign.com" <md@rpzdesign.com>)
List pgsql-hackers
"md@rpzdesign.com" <md@rpzdesign.com> writes:
> You may want to consider changing the command TRIGGER into a command FILTER
> and possibly post processing TRIGGER that
> is determined to be called INSIDE the FILTER.  Or some way to pass
> information between the FILTER and the post processing trigger.

The only current "event" supported by the system is the
"ddl_command_start" one. We mean to add some more, and triggers wanting
to communicate data in between "ddl_command_start" and "ddl_command_end"
(for example) will have to use something like a table.

> Also, something information as to whether a series of statements was ROLLED
> BACK would be helpful.

Event Triggers are not an autonomous transaction: any effect they have
in the database is rolled-backed when the main transaction is rolled
backed. You can use LISTEN/NOTIFY or PGQ that both know how to handle
that semantics.

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



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [ADMIN] pg_upgrade from 9.1.3 to 9.2 failed
Next
From: Peter Eisentraut
Date:
Subject: Re: [ADMIN] pg_upgrade from 9.1.3 to 9.2 failed