Re: Simple Column reordering

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Simple Column reordering
Дата
Msg-id 20070223024956.GF7744@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Simple Column reordering  ("Andrew Dunstan" <andrew@dunslane.net>)
Ответы Re: Simple Column reordering  (Gregory Stark <stark@enterprisedb.com>)
Re: Simple Column reordering  ("Simon Riggs" <simon@2ndquadrant.com>)
Re: Simple Column reordering  ("Zeugswetter Andreas ADI SD" <ZeugswetterA@spardat.at>)
Список pgsql-hackers
Andrew Dunstan wrote:
> Simon Riggs wrote:
> >
> > I propose that at CREATE TABLE time, the column ordering is re-ordered
> > so that the table columns are packed more efficiently. This would be a
> > physical re-ordering, so that SELECT * and COPY without explicit column
> > definitions would differ from the original CREATE TABLE statement.
> >
> > This would be an optional feature, off by default, controlled by a
> > USERSET GUC
> >     optimize_column_order = off (default) | on
> 
> Umm, you want a GUC setting to enable standards-breaking behaviour and
> that will be obsolete when we do column ordering right, which is not
> likely to be more than one release away, and could even still happen in
> this coming release?

Given that we already seem to have a patch implementing a complete
solution, or part thereof, this would seem a rather shortsighted
proposal.  Why not develop the whole thing and be done with it?

I don't understand the reluctance to implementing all of it.  The most
serious objection I've seen, from Andreas IIRC, is that it would make
drivers' lives more difficult; but really, drivers have to cope with
dropped columns today which is a pain, and ISTM this proposal (not this
one here, but the three-column proposal) would make that a bit simpler.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Andrew Dunstan"
Дата:
Сообщение: Re: Simple Column reordering
Следующее
От: Warren Turkal
Дата:
Сообщение: Re: SCMS question