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