Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVKIB-0005qS-0l for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Jul 2017 16:15:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dVKIA-0005wQ-JT for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Jul 2017 16:15:10 +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 1dVKI9-0005vU-PU for pgsql-bugs@postgresql.org; Wed, 12 Jul 2017 16:15:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dVKI7-0001Cw-4O for pgsql-bugs@postgresql.org; Wed, 12 Jul 2017 16:15:08 +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 v6CGEscG008082; Wed, 12 Jul 2017 12:14:54 -0400 From: Tom Lane To: Peter Geoghegan cc: Heikki Linnakangas , Andres Freund , Sergey Koposov , "pgsql-bugs@postgresql.org" Subject: Re: BUG #14722: Segfault in tuplesort_heap_siftup, 32 bit overflow In-reply-to: References: <20170629161637.1478.93109@wrigleys.postgresql.org> <1499281579.8258.32.camel@cmu.edu> <28906.1499292236@sss.pgh.pa.us> <20170705221414.bgnw73z2mwkjwor7@alap3.anarazel.de> <3de75af4-a49f-36d1-347f-f170693ce6f5@iki.fi> <4817.1499874124@sss.pgh.pa.us> Comments: In-reply-to Peter Geoghegan message dated "Wed, 12 Jul 2017 08:47:57 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8080.1499876094.1@sss.pgh.pa.us> Date: Wed, 12 Jul 2017 12:14:54 -0400 Message-ID: <8081.1499876094@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Peter Geoghegan writes: > On Wed, Jul 12, 2017 at 8:42 AM, Tom Lane wrote: >>> Another option to use "unsigned int", on the assumption that UINT_MAX >= >>> INT_MAX * 2 + 1. >> Ah, that seems like a fine idea. > Works for me. I'll go make it so, unless Heikki's already on it? regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs