Re: [PATCH] Transaction traceability - txid_status(bigint)
От | Craig Ringer |
---|---|
Тема | Re: [PATCH] Transaction traceability - txid_status(bigint) |
Дата | |
Msg-id | CAMsr+YGgPeRDMmPxKvuTyFpt+KvaXRrywwfd_OOEDH07rhp+eA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: [PATCH] Transaction traceability - txid_status(bigint) (Robert Haas <robertmhaas@gmail.com>) |
Список | pgsql-hackers |
On 23 August 2016 at 01:03, Robert Haas <robertmhaas@gmail.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.
В списке pgsql-hackers по дате отправления: