Re: Why does txid_current() assign new transaction-id? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Why does txid_current() assign new transaction-id?
Date
Msg-id 19247.1432662657@sss.pgh.pa.us
Whole thread Raw
In response to Re: Why does txid_current() assign new transaction-id?  (Christoph Berg <myon@debian.org>)
List pgsql-hackers
Christoph Berg <myon@debian.org> writes:
> I think the OP's point was (or should have been), to make txid_current
> not draw a new xid when run outside a transaction block, though it's
> questionable if that wouldn't just add a POLA-violating layer.

Well, the patch as proposed failed to do that, but in any case I don't
see much argument for changing the long-established behavior of that
function.  Better to add another one if you want a read-only monitoring
probe.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Christoph Berg
Date:
Subject: Re: Why does txid_current() assign new transaction-id?
Next
From: Josh Berkus
Date:
Subject: Re: fsync bug faq for publication?