Re: Problem with async notifications of table updates - Mailing list pgsql-general

From Klint Gore
Subject Re: Problem with async notifications of table updates
Date
Msg-id 47E19C63.4030001@une.edu.au
Whole thread Raw
In response to Re: Problem with async notifications of table updates  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom Lane wrote:
> "Tyler, Mark" <Mark.Tyler@dsto.defence.gov.au> writes:
>
>> What I want to do is to guarantee that the row is available for
>> selection prior to sending the message.
>>
>
> You cannot do that with an AFTER trigger, because whatever it does
> necessarily happens before your transaction commits.  I suggest
> rethinking your dislike of NOTIFY.
>
What if the trigger is a constraint trigger that is deferred?
http://www.postgresql.org/docs/8.3/interactive/sql-createconstraint.html

klint.

--
Klint Gore
Database Manager
Sheep CRC
A.G.B.U.
University of New England
Armidale NSW 2350

Ph: 02 6773 3789
Fax: 02 6773 3266
EMail: kgore4@une.edu.au


pgsql-general by date:

Previous
From: Bjørn T Johansen
Date:
Subject: Which JDBC version to use with PostgreSQL 8.1.11?
Next
From: "Tri Quach"
Date:
Subject: rpmbuild: command not found