Re: unsigned types - Mailing list pgsql-general

From Tom Lane
Subject Re: unsigned types
Date
Msg-id 14114.1129672055@sss.pgh.pa.us
Whole thread Raw
In response to Re: unsigned types  (Neil Conway <neilc@samurai.com>)
Responses Re: unsigned types  (Greg Stark <gsstark@mit.edu>)
List pgsql-general
Neil Conway <neilc@samurai.com> writes:
> We could improve on this by reordering fields on-disk to reduce
> alignment/padding requirements, during CREATE TABLE. We'd need to be
> sure to present the same column order back to the client application, of
> course, but that should be possible. The notion of a "physical column
> number" (on-disk position of the column) as well as a "logical column
> numer" (position of the column in the table -- e.g. in SELECT *
> expansion) would also make it easy to implement column reordering in
> ALTER TABLE, which has been requested a few times.

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.

            regards, tom lane

pgsql-general by date:

Previous
From: Johan Wehtje
Date:
Subject: Re: A good client
Next
From: "Onyx"
Date:
Subject: PostgreSQL on Dual Processors, Dual-Core AMD Chips