From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Fix integer-overflow problems in interval comparison.
Date: Mon, 17 Apr 2017 10:07:44 -0700
Message-ID: <20170417170744.74wmgapk3rdxdcbk@alap3.anarazel.de> (raw)
In-Reply-To: <7775.1492448671@sss.pgh.pa.us>
References: <E1cvySh-0006pk-UM@gemulon.postgresql.org>
<4a192a84-9004-2263-6447-0fef95e18fa6@2ndquadrant.com>
<7775.1492448671@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
On 2017-04-17 13:04:31 -0400, Tom Lane wrote:
> Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> > On 4/5/17 23:51, Tom Lane wrote:
> >> Fix integer-overflow problems in interval comparison.
>
> > This is failing cpluspluscheck now because C++ does not have
> > _Static_assert, which is used in int128.h.
>
> Hmm. We could drop that assert, or move it to some .c file, or
> wrap it in "#ifndef __cplusplus" ... but really it seems like a
> more generic solution would be appropriate. This won't be the
> last time somebody tries to do that, what with our increasing
> use of inline functions.
>
> Maybe the definition of StaticAssertStmt should be tweaked based on
> __cplusplus?
That seems reasonable, possibly with a cplusplus version check and then
using static_assert()? Although I'd personally just mention that as a
todo for later.
> Or maybe the problem is cpluspluscheck's test methodology,
> ie you ought to run configure with CC=c++ before trying to compile the
> headers?
That seems unlikely to work well for the moment...
- Andres
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: andres@anarazel.de, tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com
Subject: Re: pgsql: Fix integer-overflow problems in interval comparison.
In-Reply-To: <20170417170744.74wmgapk3rdxdcbk@alap3.anarazel.de>
References: <E1cvySh-0006pk-UM@gemulon.postgresql.org> <4a192a84-9004-2263-6447-0fef95e18fa6@2ndquadrant.com> <7775.1492448671@sss.pgh.pa.us> <20170417170744.74wmgapk3rdxdcbk@alap3.anarazel.de>
* 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