Re: NextXID format change (was Re: exposing pg_controldata and pg_config as functions)

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: NextXID format change (was Re: exposing pg_controldata and pg_config as functions)
Дата
Msg-id CAB7nPqR0UaEPaJACjPfF23nkR6wh2SdDPG8V54eiTgQK267Xiw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: NextXID format change (was Re: exposing pg_controldata and pg_config as functions)  (Joe Conway <mail@joeconway.com>)
Ответы Re: NextXID format change (was Re: exposing pg_controldata and pg_config as functions)  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
On Wed, Feb 10, 2016 at 9:57 AM, Joe Conway <mail@joeconway.com> wrote:
> I'll commit the attached tomorrow if there are no other concerns voiced.

Just a nitpick regarding this block:
+           if (strchr(p, '/') != NULL)
+               p = strchr(p, '/');
+           /* delimiter changed from '/' to ':' in 9.6 */
+           else if (GET_MAJOR_VERSION(cluster->major_version) >= 906)
+               p = strchr(p, ':');
+           else
+               p = NULL;
Changing it as follows would save some instructions because there is
no need to call strchr an extra time:
if (GET_MAJOR_VERSION(cluster->major_version) >= 906)   p = strchr(p, ':');
else   p = strchr(p, '/');

> In the spirit of the dev meeting discussion, I am trying to use the
> commit message template discussed. Something like:
>
> -- email subject limit -----------------------------------------
> Change delimiter used for display of NextXID
>
> NextXID has been rendered in the form of a pg_lsn even though it
> really is not. This can cause confusion, so change the format from
> %u/%u to %u:%u, per discussion on hackers.
>
> Complaint by me, patch by me and Bruce, reviewed by Michael Paquier
> and Alvaro. Applied to HEAD only.
>
> Reported-by: Joe Conway
> Author: Joe Conway, Bruce Momjian
> Reviewed-by: Michael Paquier, Alvaro Herrera
> Tested-by: Michael Paquier
> Backpatch-through: master
> That does look pretty redundant though. Thoughts?

Removing Tested-by would be fine here I guess, testing and review are
overlapping concepts for this patch.
-- 
Michael



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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: NextXID format change (was Re: exposing pg_controldata and pg_config as functions)
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Existence check for suitable index in advance when concurrently refreshing.