From: | Chris Browne <cbbrowne(at)acm(dot)org> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Event-driven programming? |
Date: | 2007-09-12 21:28:01 |
Message-ID: | 60fy1jzi8u.fsf@dba2.int.libertyrms.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
dickon(dot)glanville(at)gmail(dot)com ("Jay Dickon Glanville") writes:
> On 9/12/07, Martijn van Oosterhout <kleptog(at)svana(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Ron Mayer | 2007-09-12 21:31:10 | Re: an other provokative question?? |
Previous Message | Cultural Sublimation | 2007-09-12 21:22:46 | Re: Cannot declare record members NOT NULL |