New hooks for snapshot and transaction ID acquisition from external source

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: New hooks for snapshot and transaction ID acquisition from external source
Date: 2013-02-23 05:48:09
Message-ID: CAB7nPqTDjf-58wuf-xZ01NKJ7WF0E+EUKgGQHd0igVsOD4hCJQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

What do you think about adding hooks for transaction ID and snapshot
acquisition? Those hooks could be located in AssignTransactionId:xact.c for
transaction ID and GetTransactionSnapshot:snapmgr.c for snapshots.
This is useful for multi-master applications that use external tools to
feed with unique transaction IDs and global snapshots all the nodes of a
cluster in order to maintain global data consistency and visibility, one of
the examples being cluster applications like Postgres-XC.

Opinions?
--
Michael

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Erik Rijkers 2013-02-23 06:34:58 Re: Show type in psql SELECT
Previous Message Pavel Stehule 2013-02-23 04:53:41 Re: bugfix: --echo-hidden is not supported by \sf statements