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.

--
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: PATCH: Batch/pipelining support for libpq
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: [BUGS] Re: Missing rows with index scan when collation is not "C" (PostgreSQL 9.5)