Re: [PATCH] /src/backend/access/transam/xlog.c, tiny improvements

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [PATCH] /src/backend/access/transam/xlog.c, tiny improvements
Дата
Msg-id 20200127075556.GE4913@paquier.xyz
обсуждение исходный текст
Ответ на Re: [PATCH] /src/backend/access/transam/xlog.c, tiny improvements  (Mark Dilger <mark.dilger@enterprisedb.com>)
Ответы Re: [PATCH] /src/backend/access/transam/xlog.c, tiny improvements
Список pgsql-hackers
On Sun, Jan 26, 2020 at 06:47:57PM -0800, Mark Dilger wrote:
> There is something unusual about comparing a XLogSegNo variable in
> this way, but it seems to go back to 2014 when the replication slots
> were introduced in commit 858ec11858a914d4c380971985709b6d6b7dd6fc,
> and XLogSegNo was unsigned then, too.  Depending on how you look at
> it, this could be a thinko, or it could be defensive programming
> against future changes to the XLogSegNo typedef.  I’m betting it was
> defensive programming, given the context.  As such, I don’t think it
> would be appropriate to remove this defense in your patch.

Yeah.  To e honest, I am not actually sure if it is worth bothering
about any of those three places.
--
Michael

Вложения

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

Предыдущее
От: Surafel Temesgen
Дата:
Сообщение: Re: can we use different function in place of atoi in vacuumdb.c file
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: Setting min/max TLS protocol in clientside libpq