pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Gould <daveg@sonic.net>
Cc: Peter Geoghegan <pg@bowt.ie>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: Andres Freund <andres@anarazel.de>
Cc: Sergey Koposov <skoposov@cmu.edu>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14722: Segfault in tuplesort_heap_siftup, 32 bit overflow
Date: Fri, 14 Jul 2017 17:45:30 -0400
Message-ID: <5105.1500068730@sss.pgh.pa.us> (raw)
In-Reply-To: <20170714141745.13954776@engels>
References: <20170629161637.1478.93109@wrigleys.postgresql.org>
	<CAH2-Wz=wjX9ADNR6V6eoTqC0J0FZo+VxmU2PPryMJKjZW=8wxg@mail.gmail.com>
	<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>
	<CAH2-WzkNs03GLMnv6pQZY8f2vKgjhsjmKByfQX6E27HCpjhKow@mail.gmail.com>
	<8081.1499876094@sss.pgh.pa.us>
	<007e3020-3d27-8ac8-7269-9db7ebe9a8bf@iki.fi>
	<CAH2-WzmxAi3R+JEbdMr17h=Ecf=aVywYi138Qnym=EyG2nwOpQ@mail.gmail.com>
	<15372.1499878388@sss.pgh.pa.us>
	<20170714141745.13954776@engels>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

David Gould <daveg@sonic.net> writes:
> Tom Lane <tgl@sss.pgh.pa.us> 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. 

Fun stuff.  Other than the ones-complement choice, this smells quite a bit
like the PDP-10 gear I used to use back when.

> Not even one year. UNISYS are still marketing this architecture as the UNISYS
> ClearPath IX series, you can order one today.

The recent models claim to be pure Intel though; if they're still
supporting the 1100 architecture, it must be through emulation.

> Still, I think it is safe to wait until someone actually pays for a
> postgresql port before considering ones-complement issues.

Yeah.  I actually suspect that the weird word size would be a much bigger
headache for us than the ones-complement business.  The other small
problem is that as far as I could find, they never went past a 24-bit
address space, which would make for at most 64MB worth of memory (with
9-bit "bytes").  In principle you could probably run modern Postgres
with so little RAM, but it wouldn't be of any real use.

			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



view thread (26+ messages)

Message-ID: <5105.1500068730@sss.pgh.pa.us>
Permalink:  ../5105.1500068730@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5105.1500068730@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, daveg@sonic.net, pg@bowt.ie, hlinnaka@iki.fi, andres@anarazel.de, skoposov@cmu.edu
  Subject: Re: BUG #14722: Segfault in tuplesort_heap_siftup, 32 bit overflow
  In-Reply-To: <5105.1500068730@sss.pgh.pa.us>
  References: <20170629161637.1478.93109@wrigleys.postgresql.org> <CAH2-Wz=wjX9ADNR6V6eoTqC0J0FZo+VxmU2PPryMJKjZW=8wxg@mail.gmail.com> <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> <CAH2-WzkNs03GLMnv6pQZY8f2vKgjhsjmKByfQX6E27HCpjhKow@mail.gmail.com> <8081.1499876094@sss.pgh.pa.us> <007e3020-3d27-8ac8-7269-9db7ebe9a8bf@iki.fi> <CAH2-WzmxAi3R+JEbdMr17h=Ecf=aVywYi138Qnym=EyG2nwOpQ@mail.gmail.com> <15372.1499878388@sss.pgh.pa.us> <20170714141745.13954776@engels> <5105.1500068730@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox