Re: Event-driven programming? - Mailing list pgsql-general

From Chris Browne
Subject Re: Event-driven programming?
Date
Msg-id 60fy1jzi8u.fsf@dba2.int.libertyrms.com
Whole thread Raw
In response to Event-driven programming?  ("Jay Dickon Glanville" <dickon.glanville@gmail.com>)
List pgsql-general
dickon.glanville@gmail.com ("Jay Dickon Glanville") writes:
> On 9/12/07, Martijn van Oosterhout <kleptog@svana.org> wrote:
>> On Wed, Sep 12, 2007 at 12:36:22PM -0400, Jay Dickon Glanville wrote:
>> > Hello all.
>> >
>> > Is it possible for PostgreSQL to notify me of a successful transaction commit?
>>
>> There is the LISTEN/NOTIFY mechanism. It's not automatic but I think it
>> does most of what oyu want.
>
> Thanks for the suggestion Martijn, but I get the impression from the
> documentation that LISTEN/NOTIFY is for client to client
> communication.  This type of communication isn't what I'm looking for.
>  I want server to client communication, where the server is notifying
> me on successful commit of transaction.

It may be closer to what you want than you think.

The server *does* notify listeners upon successful commit of a
transaction, and the timing is indeed right; the time of the
notification is COMMIT time, not before.
--
output = ("cbbrowne" "@" "cbbrowne.com")
http://cbbrowne.com/info/nonrdbms.html
And me, with this terrible pain in all the diodes down my left side...
-- Marvin the Paranoid Android

pgsql-general by date:

Previous
From: Richard Broersma Jr
Date:
Subject: Re: Cannot declare record members NOT NULL
Next
From: Cultural Sublimation
Date:
Subject: Re: Cannot declare record members NOT NULL