Re: [PATCH] /src/backend/access/transam/xlog.c, tiny improvements - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: [PATCH] /src/backend/access/transam/xlog.c, tiny improvements
Date
Msg-id 20200127075556.GE4913@paquier.xyz
Whole thread Raw
In response to Re: [PATCH] /src/backend/access/transam/xlog.c, tiny improvements  (Mark Dilger <mark.dilger@enterprisedb.com>)
Responses Re: [PATCH] /src/backend/access/transam/xlog.c, tiny improvements  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
List 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

Attachment

pgsql-hackers by date:

Previous
From: Surafel Temesgen
Date:
Subject: Re: can we use different function in place of atoi in vacuumdb.c file
Next
From: Daniel Gustafsson
Date:
Subject: Re: Setting min/max TLS protocol in clientside libpq