Re: Exposing the Xact commit order to the user - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Exposing the Xact commit order to the user
Date
Msg-id 4BFD57AB.3060306@enterprisedb.com
Whole thread Raw
In response to Re: Exposing the Xact commit order to the user  (Jan Wieck <JanWieck@Yahoo.com>)
Responses Re: Exposing the Xact commit order to the user
List pgsql-hackers
Could you generate the commit-order log by simply registering a commit 
hook (RegisterXactCallback(XACT_EVENT_COMMIT)) that writes such a log 
somewhere in the data directory? That would work with older versions 
too, no server changes required.

It would not get called during recovery, but I believe that would be 
sufficient for Slony. You could always batch commits that you don't know 
when they committed as if they committed simultaneously.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: Synchronization levels in SR
Next
From: Heikki Linnakangas
Date:
Subject: Re: Synchronization levels in SR