Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d09gg-00073v-65 for pgsql-committers@arkaria.postgresql.org; Mon, 17 Apr 2017 16:39:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d09gf-0000WQ-3d for pgsql-committers@arkaria.postgresql.org; Mon, 17 Apr 2017 16:39:37 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d09ge-0000T4-DV for pgsql-committers@postgresql.org; Mon, 17 Apr 2017 16:39:36 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d09gb-00027L-K4 for pgsql-committers@postgresql.org; Mon, 17 Apr 2017 16:39:35 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 3BA56209DB; Mon, 17 Apr 2017 12:39:32 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Mon, 17 Apr 2017 12:39:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding: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=NU4kqkh0c636QA2o/ewZbSSNvaQbHEfUjD4VmmFjisk=; b=NQ7doavB 6Vjh2RcQbTyE2wIX0lxuz8zb8/If96NwRbxg7Sit8DqZRJw7CCILtSi/WXP3NUrv K3J/LR4Zwumjchm187wQEXLCfGH6MdImKrUlpF07eanDTbvyBPWj2gjSEqkuJhAe 5ap6qQWzyNK4p4t8KTWnupnUTHVQarEhYdvne1OUTUk39aQ+svJiJAnw8AC4yAaE Z8AFHRU7MUbb9hHnj2YXj5HpaghmlR8HBWTv5Lgf3JfwK3Khbk1ar2BXU4/4v5DE 1aKxtLPEzKZ8d3nQD+XiOBr3S+rg3it0WsEHUWAfuU2wKMSrl8KWyXO/7SbkumMn K+ODGTGKTp05aA== X-ME-Sender: X-Sasl-enc: +PXajvHNsZM8oWA2Nid6RrdVTk6XzHNs7KpuUt2rinKi 1492447172 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 09AC324741; Mon, 17 Apr 2017 12:39:32 -0400 (EDT) Subject: Re: pgsql: Fix integer-overflow problems in interval comparison. To: Tom Lane , pgsql-committers@postgresql.org References: From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <4a192a84-9004-2263-6447-0fef95e18fa6@2ndquadrant.com> Date: Mon, 17 Apr 2017 12:39:31 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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 4/5/17 23:51, Tom Lane wrote: > Fix integer-overflow problems in interval comparison. > Branch > ------ > REL9_4_STABLE > > Details > ------- > http://git.postgresql.org/pg/commitdiff/8851bcf8813baa0ea393ef9d2894d15b3f13f957 > > Modified Files > -------------- > src/backend/utils/adt/timestamp.c | 65 ++++++++-- > src/include/common/int128.h | 231 +++++++++++++++++++++++++++++++++ > src/test/regress/expected/interval.out | 64 +++++++++ > src/test/regress/sql/interval.sql | 27 ++++ > 4 files changed, 376 insertions(+), 11 deletions(-) This is failing cpluspluscheck now because C++ does not have _Static_assert, which is used in int128.h. I suppose this header is not intended for public consumption, at least in the back branches, so it would be OK to exclude it from the check. Perhaps a different solution would be appropriate in master. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers