Re: RE : full featured alter table?

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: RE : full featured alter table?
Дата
Msg-id 20030616055539.GA40542@flake.decibel.org
обсуждение исходный текст
Ответ на RE : full featured alter table?  ("Bruno BAGUETTE" <pgsql-ml@baguette.net>)
Ответы Re: RE : full featured alter table?  (Ernest E Vogelsinger <ernest@vogelsinger.at>)
Re: RE : full featured alter table?  ("scott.marlowe" <scott.marlowe@ihs.com>)
Список 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 по дате отправления:

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: full featured alter table?
Следующее
От: Oleg Bartunov
Дата:
Сообщение: Re: [HACKERS] UTF8 and KOI8 mini-howto