Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0A8D-0001mG-Tr for pgsql-committers@arkaria.postgresql.org; Mon, 17 Apr 2017 17:08:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d0A8D-000463-Gx for pgsql-committers@arkaria.postgresql.org; Mon, 17 Apr 2017 17:08:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d0A7y-0003IF-Ly for pgsql-committers@postgresql.org; Mon, 17 Apr 2017 17:07:50 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d0A7v-0004N9-5H for pgsql-committers@postgresql.org; Mon, 17 Apr 2017 17:07:50 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id DA345205A1; Mon, 17 Apr 2017 13:07:45 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Mon, 17 Apr 2017 13:07:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=+fPORD9NkdXkSArcrw quzCZBfzfRhkKihBDNXZ25mO0=; b=KHTRVE9oDjhu6J/oUMvg+iiCr0pyqJQxsw ojJaHCB7uROZ2dOi0T6V/thsDFJQLdePxEL9qgIp/5sGBKcxh69XTOZ6ajQSh/Pg 630qwI+OnD7mo394zbus6CGIfshfzOuEzvmvmc5X+PSwxxxT5QxzQ+AFuZCamSa3 27moj2G/E/XleIm9xxBTSOhvtZOBS3SQnNS1b/mQ60S0C6CmZpjnAcQdhRlsDqEM u6eMTuYKlJMOqrUOuAiIE0iuV74ZqYh/N8IU39dniKRyzyLfJg4colF5dPJ/Cpzk jiyrCTBp+ygMwlB2hLCR5GtgJqM7Gu9Mhzx1CL2lPYKxzsKCzJ9g== X-ME-Sender: X-Sasl-enc: ti0V+wtNsf1XLHxleKmqtIwpckIy5mYaUDwS5FQ4uVW9 1492448865 Received: from intern.anarazel.de (unknown [136.24.76.72]) by mail.messagingengine.com (Postfix) with ESMTPA id 9B2A17E2C3; Mon, 17 Apr 2017 13:07:45 -0400 (EDT) Date: Mon, 17 Apr 2017 10:07:44 -0700 From: Andres Freund To: Tom Lane Cc: Peter Eisentraut , pgsql-committers@postgresql.org Subject: Re: pgsql: Fix integer-overflow problems in interval comparison. Message-ID: <20170417170744.74wmgapk3rdxdcbk@alap3.anarazel.de> References: <4a192a84-9004-2263-6447-0fef95e18fa6@2ndquadrant.com> <7775.1492448671@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7775.1492448671@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 2017-04-17 13:04:31 -0400, Tom Lane wrote: > Peter Eisentraut 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