Re: Remove useless int64 range checks on BIGINT sequence MINVALUE/MAXVALUE values - Mailing list pgsql-hackers

From David Rowley
Subject Re: Remove useless int64 range checks on BIGINT sequence MINVALUE/MAXVALUE values
Date
Msg-id CAApHDvo7jRz=Gzb27SF0+Neu5PSYErsmTPS2xZtbxHeu5hwa_A@mail.gmail.com
Whole thread Raw
In response to Re: Remove useless int64 range checks on BIGINT sequence MINVALUE/MAXVALUE values  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Responses Re: Remove useless int64 range checks on BIGINT sequence MINVALUE/MAXVALUE values
List pgsql-hackers
On Sat, 3 Jul 2021 at 22:44, Peter Eisentraut
<peter.eisentraut@enterprisedb.com> wrote:
> I don't think this is a good change.

> I think we should leave it as is.

I'm inclined to agree.

When I mentioned adding a comment I'd not imagined it would be quite
so verbose. Plus, I struggle to imagine there's any compiler out there
that someone would use that wouldn't just remove the check anyway. I
had a quick click around on https://godbolt.org/z/PnKeq5bsT and didn't
manage to find any compilers that didn't remove the check.

David



pgsql-hackers by date:

Previous
From: Dean Rasheed
Date:
Subject: Re: rand48 replacement
Next
From: Fabien COELHO
Date:
Subject: Re: rand48 replacement