Re: pre-commit triggers - Mailing list pgsql-hackers

From Hannu Krosing
Subject Re: pre-commit triggers
Date
Msg-id 52891359.40101@2ndQuadrant.com
Whole thread Raw
In response to Re: pre-commit triggers  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-hackers
On 11/17/2013 07:31 PM, Andres Freund wrote:
> On 2013-11-17 09:39:26 +0100, Hannu Krosing wrote:
>>> Besides, exactly what would you do in such a trigger?  
>> The use case would be telling another system about the rollback.
>>
>> Basically sending a "ignore what I told you to do" message
> But you can't rely on it - if e.g. the server restarted/crashed, there
> won't be any messages about it. In that light, I really don't see what
> you could do with it.
I can get the info about non-commit earlier :)

At some point I can call back into the database and see if the
transaction is still running.

Cheers

-- 
Hannu Krosing
PostgreSQL Consultant
Performance, Scalability and High Availability
2ndQuadrant Nordic OÜ




pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Wildcard usage enhancements in .pgpass
Next
From: "David E. Wheeler"
Date:
Subject: Re: additional json functionality