From: | Craig Ringer <craig(at)2ndquadrant(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Jim Nasby <Jim(dot)Nasby(at)bluetreble(dot)com> |
Subject: | Re: [PATCH] Transaction traceability - txid_status(bigint) |
Date: | 2016-08-23 00:31:26 |
Message-ID: | CAMsr+YGgPeRDMmPxKvuTyFpt+KvaXRrywwfd_OOEDH07rhp+eA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 23 August 2016 at 01:03, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> I think you should use underscores to separate all of the words
> instead of only some of them.
>
Right. Will fix.
Thanks for taking a look.
> Also, note that the corresponding internal function is
> GetTopTransactionIdIfAny(), which might suggest txid_current_if_any()
> rather than txid_current_if_assigned(), but you could argue that your
> naming is better.
Yeah, I do argue that in this case. Not a hugely strong opinion, but we
refer to txid_current() in the docs as:
"get current transaction ID, assigning a new one if the current transaction
does not have one"
so I thought it'd be worth being consistent with that. It's not like
txid_current() mirrors the name of GetTopTransactionId() after all ;) and I
think it's more important to be consistent with what the user sees than
with the code.
--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2016-08-23 00:36:31 | Re: [BUGS] Re: Missing rows with index scan when collation is not "C" (PostgreSQL 9.5) |
Previous Message | Craig Ringer | 2016-08-23 00:27:01 | Re: PATCH: Batch/pipelining support for libpq |