Transaction callback

From: "Thomas Hallgren" <thhal(at)mailblocks(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Transaction callback
Date: 2004-01-31 16:41:14
Message-ID: bvglqt$20u7$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I would like to register a "transaction callback" in the backend. Don't
think it's possible today and my question is, how hard would it be to
implement something that would enable this registration?

Ideally, I'd like a "beforeCompletion" that is executed prior to the start
of the commit process and a "afterCompletion" that is called when the
transaction is commited. The latter would have a status flag indicating if
status is "prepared" (to support 2-phase commits), "commited", or "rolled
back".

A related issue is the ability to register a callback that is executed when
the connection is first established. Is that possible today? If so, how do I
register the function to be called?

Regards,

Thomas Hallgren

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2004-01-31 16:52:42 Re: [PATCHES] v7.4.1 text_position() patch
Previous Message Dan Langille 2004-01-31 16:23:38 Re: dump + restore didn't include schemas