Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1em5fR-0000YW-4S for pgsql-committers@arkaria.postgresql.org; Wed, 14 Feb 2018 22:36:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1em5fQ-00069g-8U for pgsql-committers@arkaria.postgresql.org; Wed, 14 Feb 2018 22:36:44 +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 1em5fQ-00069W-3o for pgsql-committers@lists.postgresql.org; Wed, 14 Feb 2018 22:36:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1em5fN-0002bz-N9 for pgsql-committers@postgresql.org; Wed, 14 Feb 2018 22:36:43 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w1EMacna015639; Wed, 14 Feb 2018 17:36:38 -0500 From: Tom Lane To: Andres Freund cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Use new overflow aware integer operations. In-reply-to: <20180214223026.m2alym4qrdnimqrd@alap3.anarazel.de> References: <18169.1513958454@sss.pgh.pa.us> <20171222175225.3vaod42gv34l32wv@alap3.anarazel.de> <4294.1513968774@sss.pgh.pa.us> <19898.1514415566@sss.pgh.pa.us> <20171229202154.crqrq3s7ssqyqn5s@alap3.anarazel.de> <20180214223026.m2alym4qrdnimqrd@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Wed, 14 Feb 2018 14:30:26 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15637.1518647797.1@sss.pgh.pa.us> Date: Wed, 14 Feb 2018 17:36:38 -0500 Message-ID: <15638.1518647798@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: >> Yea, that works for me. I wonder if we should choose an absurd sentinel >> value to prevent code from relying on one? 0x0000beef or such. Unless >> somebody protests soon-ish I'll make it so. > Pushed that way (with 0x5EED as the value, seems more appropriate ;)). LGTM, thanks! > I can't convince any of my compilers to actual emit warnings in this > case, so we'll have to see whether prairiedog like this... Per my results yesterday, locust and coypu were also complaining; one of them might come back quicker. regards, tom lane