Re: triggers on prepare, commit, rollback... ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Cc: PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: triggers on prepare, commit, rollback... ?
Date: 2008-05-19 14:10:38
Message-ID: 4682.1211206238@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr> writes:
> I've played with triggers a bit, and I have noticed that there seem to be
> no way to add a trigger on events such as "prepare", "commit", "rollback",
> "savepoint",

Yup, and there won't be. This has been suggested and rejected before.
See the archives.

> It seems to me that such triggers would be useful to help implement a
> "simple" (hmmm...) synchroneous replication system,

That argument has no credibility whatever. We have not even been able
to get the replication projects to agree on a common set of custom
hooks; the chance that they could get by with triggers on SQL-visible
events is nil.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gregory Stark 2008-05-19 14:22:10 Re: [HACKERS] WITH RECURSIVE patch V0.1
Previous Message Tom Lane 2008-05-19 13:52:45 Re: notification information functions