From: | "Jim C(dot) Nasby" <jim(at)nasby(dot)net> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: RE : full featured alter table? |
Date: | 2003-06-16 05:55:39 |
Message-ID: | 20030616055539.GA40542@flake.decibel.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)nasby(dot)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?"
From | Date | Subject | |
---|---|---|---|
Next Message | Oleg Bartunov | 2003-06-16 05:57:55 | Re: [HACKERS] UTF8 and KOI8 mini-howto |
Previous Message | Jim C. Nasby | 2003-06-16 05:45:57 | Re: full featured alter table? |