Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dW7yb-00085F-OU for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Jul 2017 21:18:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dW7yb-000164-3O for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Jul 2017 21:18:17 +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 1dW7yZ-00015s-LJ for pgsql-bugs@postgresql.org; Fri, 14 Jul 2017 21:18:15 +0000 Received: from d.mail.sonic.net ([64.142.111.50]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dW7yR-0003AV-CH for pgsql-bugs@postgresql.org; Fri, 14 Jul 2017 21:18:15 +0000 Received: from engels (162-236-13-58.lightspeed.sntcca.sbcglobal.net [162.236.13.58]) (authenticated bits=0) by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id v6ELHjC1032023 (version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 14 Jul 2017 14:17:46 -0700 Date: Fri, 14 Jul 2017 14:17:45 -0700 From: David Gould To: Tom Lane Cc: Peter Geoghegan , Heikki Linnakangas , Andres Freund , Sergey Koposov , "pgsql-bugs@postgresql.org" Subject: Re: BUG #14722: Segfault in tuplesort_heap_siftup, 32 bit overflow Message-ID: <20170714141745.13954776@engels> In-Reply-To: <15372.1499878388@sss.pgh.pa.us> 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> <8081.1499876094@sss.pgh.pa.us> <007e3020-3d27-8ac8-7269-9db7ebe9a8bf@iki.fi> <15372.1499878388@sss.pgh.pa.us> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sonic-CAuth: UmFuZG9tSValjIrDHTKiZjQ1xQVnuQtxuNsGDeLTHLGi7MA1cu3uxjX2P5de9wNaDqz8+f1lBrz5IlgC1mpXw7cB/D8hq3cQ X-Sonic-ID: C;TmF14dlo5xGIS/sKk0eh0A== M;xM+f4dlo5xGIS/sKk0eh0A== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd 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 On Wed, 12 Jul 2017 12:53:08 -0400 Tom Lane wrote: > ... right. There haven't been any non-twos-complement machines in the > wild for probably 50 years, and even if there were, this would be *way* > down the list of problems you'd have to fix to get Postgres to run on > one of them. Not quite 50 years. In 1979 had the "pleasure" of working at Bechtel on a Univac 1110. Univac 1100 seris are ones-complement (with both positive and negative zero!) with 36 bit longs, 18 bit ints and depending on character mode either 9 bit ASCII or 6 bit FIELDDATA chars. Not even one year. UNISYS are still marketing this architecture as the UNISYS ClearPath IX series, you can order one today. Apparently it is true in computing that nothing ever dies. These were actually fascinatingly weird machines, almost everything is different from what we are used to: https://en.wikipedia.org/wiki/UNIVAC_1100/2200_series Still, I think it is safe to wait until someone actually pays for a postgresql port before considering ones-complement issues. -dg -- David Gould daveg@sonic.net If simplicity worked, the world would be overrun with insects. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs