Re: unsigned types

From: Greg Stark <gsstark(at)mit(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Neil Conway <neilc(at)samurai(dot)com>, "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>, Jeff Davis <jdavis-pgsql(at)empires(dot)org>, jeff sacksteder <jsacksteder(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: unsigned types
Date: 2005-10-19 05:44:02
Message-ID: 87vezu9i3h.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> And it's been looked at a few times, and rejected as being far too
> bug-prone. The number of ways to screw up by using physical column
> number where you should have used logical, or vice versa, is daunting.

One way to make sure there are no such bugs would be to make sure the two sets
of values are completely incompatible. So any attempt to use the wrong one
would *always* cause a bug rather than just sometimes.

Say by making one set have an offset of 1000 or be negative and have the
functions/macros that handle this assert() the correct range before
adjusting and proceeding.

--
greg

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Chris Travers 2005-10-19 05:59:54 Re: [GENERAL] Oracle buys Innobase
Previous Message Tom Lane 2005-10-19 05:35:25 Re: [GENERAL] Oracle buys Innobase