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 18863.1432661905@sss.pgh.pa.us
Whole thread Raw
In response to Re: Why does txid_current() assign new transaction-id?  (Christoph Berg <myon@debian.org>)
Responses Re: Why does txid_current() assign new transaction-id?
List pgsql-hackers
Christoph Berg <myon@debian.org> writes:
> Still, exposing GetStableLatestTransactionId() on the SQL level would
> make sense for monitoring transaction throughput.

Perhaps, though I wonder why we should expose that and not just report the
result of ReadNewTransactionId() --- or in txid.c's case, the result of
GetNextXidAndEpoch().  In either case it would have to be a new function,
not unilaterally redefining what txid_current() does.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Christoph Berg
Date:
Subject: Re: Why does txid_current() assign new transaction-id?
Next
From: Christoph Berg
Date:
Subject: Re: Why does txid_current() assign new transaction-id?