Re: BDR - triggers on receiving node? - Mailing list pgsql-general

From Peter Mogensen
Subject Re: BDR - triggers on receiving node?
Date
Msg-id 5512A692.5020508@one.com
Whole thread Raw
In response to Re: BDR - triggers on receiving node?  (Craig Ringer <craig@2ndquadrant.com>)
Responses Re: BDR - triggers on receiving node?
List pgsql-general

On 2015-03-25 12:32, Craig Ringer wrote:
> On 25 March 2015 at 19:15, Peter Mogensen <apm@one.com> wrote:
>
>> Say ... I have a table in a BDR replicated database with an "ON UPDATE"
>> trigger. - and that trigger wants to locally find out the local
>> txid_snapshot_xmin() when a change was applied to the local node.
>>
> Why would you want to do that? Just out of interest?
>
>

Because I have a bunch of SELECT queries to the local node, which
includes the txid_current() in their result, and I want to be able to
recognize a result which was obtained prior to a change reaching the
local node.

/Peter




pgsql-general by date:

Previous
From: John McKown
Date:
Subject: Re: :Posgres - performance problem
Next
From: "lucas.gary@gmail.com"
Date:
Subject: Re: :Posgres - performance problem