Re: unsigned types - Mailing list pgsql-general

From Greg Stark
Subject Re: unsigned types
Date
Msg-id 87vezu9i3h.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: unsigned types  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom Lane <tgl@sss.pgh.pa.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

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: [pgsql-advocacy] Oracle buys Innobase
Next
From: Chris Travers
Date:
Subject: Re: Reverse engineering SW