Re: RE : full featured alter table? - Mailing list pgsql-general

From Jim C. Nasby
Subject Re: RE : full featured alter table?
Date
Msg-id 20030616055539.GA40542@flake.decibel.org
Whole thread Raw
In response to RE : full featured alter table?  ("Bruno BAGUETTE" <pgsql-ml@baguette.net>)
Responses Re: RE : full featured alter table?
Re: RE : full featured alter table?
List pgsql-general
On Sat, Jun 14, 2003 at 06:55:36PM +0200, Bruno BAGUETTE wrote:
> Hello everybody,
>
> > The one thing we don't have that I think would be useful is a
> > way to re-order the columns in a table. Maybe it's just me,
> > but I tend to want column to appear in a specific order, and
> > the only way you can accomplish this today is by re-creating
> > the entire table.
>
> I agree with Jim, this would be a 'cool but not mandatory' feature ! :-)
>
> This feature is not mandatory since I avoid the use SELECT * FROM...
> (and I forbid the use of SELECT * to my subordinates).

99.999% of the time, if you put SELECT * into code, you should be strung
up by your own entrails. But do you mean to tell me that when you're
testing stuff on the command line you never, ever use SELECT *?

BTW, de-coupling column definition and presentation order from internal
column order in the tuples is mandatory before PGSQL could store things
internally in the most optimal order. I find it very interesting that
many people assumed that PGSQL ordered columns however it wanted in the
tuples; I don't know of any major database that does this, even though
it probably makes a lot of sense (of course some DBA's would be very
unhappy about the loss of control, so you'd probably want an over-ride).
--
Jim C. Nasby (aka Decibel!)                    jim@nasby.net
Member: Triangle Fraternity, Sports Car Club of America
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"

pgsql-general by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: full featured alter table?
Next
From: Oleg Bartunov
Date:
Subject: Re: [HACKERS] UTF8 and KOI8 mini-howto