Re: [PATCH] Transaction traceability - txid_status(bigint)
Craig Ringer <craig@2ndquadrant.com>
From: Craig Ringer <craig@2ndquadrant.com>
To: Simon Riggs <simon@2ndquadrant.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>,
Andres Freund <andres@anarazel.de>, Jim Nasby <Jim.Nasby@bluetreble.com>, Robert Haas <robertmhaas@gmail.com>
Date: 2016-09-02T13:01:58Z
Lists: pgsql-hackers
Attachments
- 0001-Introduce-txid_status-bigint-to-get-status-of-an-xac.patch (text/x-patch) patch 0001
- 0002-Add-txid_convert_if_recent-to-get-the-32-bit-xid-fro.patch (text/x-patch) patch 0002
On 2 September 2016 at 20:38, Craig Ringer <craig@2ndquadrant.com> wrote: > On 2 Sep. 2016 8:30 pm, "Simon Riggs" <simon@2ndquadrant.com> wrote: >> >> On 2 September 2016 at 13:16, Craig Ringer <craig@2ndquadrant.com> wrote: >> >> > So I've moved it to xlog.c... >> >> I'm pretty sure it shouldn't live in xlog.c, but there may be some >> good reason I can't see yet. > > Ugh. Yes. transam.c would be rather saner. > > Only for the helper to determine if an xid is recent though; txid_ status > stays in adt/xact.c where it belongs along with txid_current() etc. Fixed, moved to transam.c. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
Commits
-
Add a txid_status function.
- 857ee8e391ff 10.0 landed
-
Track the oldest XID that can be safely looked up in CLOG.
- ea42cc18c353 10.0 landed