Re: BDR - triggers on receiving node?

From: Peter Mogensen <apm(at)one(dot)com>
To: Craig Ringer <craig(at)2ndquadrant(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: BDR - triggers on receiving node?
Date: 2015-03-25 12:14:10
Message-ID: 5512A692.5020508@one.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2015-03-25 12:32, Craig Ringer wrote:
> On 25 March 2015 at 19:15, Peter Mogensen <apm(at)one(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message lucas.gary@gmail.com 2015-03-25 12:43:05 Re: :Posgres - performance problem
Previous Message John McKown 2015-03-25 11:50:05 Re: :Posgres - performance problem