Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9Y5F-0007su-BG for pgsql-bugs@arkaria.postgresql.org; Fri, 30 Jul 2021 19:22:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m9Y5E-0001DE-9E for pgsql-bugs@arkaria.postgresql.org; Fri, 30 Jul 2021 19:22:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9Y5E-0001D3-2j for pgsql-bugs@lists.postgresql.org; Fri, 30 Jul 2021 19:22:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9Y5C-00020P-2D for pgsql-bugs@lists.postgresql.org; Fri, 30 Jul 2021 19:22:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 16UJM77f1117181; Fri, 30 Jul 2021 15:22:07 -0400 From: Tom Lane To: John Naylor cc: kjs@teews.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17128: minimum numeric 'integer' is -2147483647 not -2147483648 as documented In-reply-to: References: <17128-55a8a879727a3e3a@postgresql.org> <1003602.1627658072@sss.pgh.pa.us> Comments: In-reply-to John Naylor message dated "Fri, 30 Jul 2021 13:56:30 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1117179.1627672927.1@sss.pgh.pa.us> Date: Fri, 30 Jul 2021 15:22:07 -0400 Message-ID: <1117180.1627672927@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk John Naylor writes: > Here's a draft fix for master, with regression tests. Passes an eyeball check, though I didn't run the test. > It will need a bit of > massaging for the back branches -- the problem goes back at least to 9.6. I'm sure it's quite ancient ... ecpg hasn't changed much in a Long Time. regards, tom lane