From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Silence some Coverity warnings and improve code consistency.
Date: Mon, 12 Apr 2021 10:01:01 -0400
Message-ID: <2786228.1618236061@sss.pgh.pa.us> (raw)
In-Reply-To: <3f7a17f6-42e4-9de8-9984-4b0bbdec737f@enterprisedb.com>
References: <E1lVhDh-0000go-Kr@gemulon.postgresql.org>
<3f7a17f6-42e4-9de8-9984-4b0bbdec737f@enterprisedb.com>
Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
> On 11.04.21 23:02, Tom Lane wrote:
>> ... or more accurately, with an LL constant, which is not project
>> style. Make all of these use INT64CONST(), as we do elsewhere.
> I think this style could be considered obsolete because C99 requires LL
> constants, and configure checks for it.
I'm not worried about whether compilers will take LL --- after all, we
also make free use of "long long" these days. I am worried that
it does not necessarily equate to int64 exactly.
In any case, I'm not a fan of TIMTOWTDI. If we want to remove
[U]INT64CONST in favor of [U]LL, we should do so across the board,
so as to maintain a consistent project style.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, peter.eisentraut@enterprisedb.com
Subject: Re: pgsql: Silence some Coverity warnings and improve code consistency.
In-Reply-To: <2786228.1618236061@sss.pgh.pa.us>
References: <E1lVhDh-0000go-Kr@gemulon.postgresql.org> <3f7a17f6-42e4-9de8-9984-4b0bbdec737f@enterprisedb.com> <2786228.1618236061@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox