Re: full featured alter table?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: full featured alter table?
Дата
Msg-id 23461.1055697766@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: full featured alter table?  (Ernest E Vogelsinger <ernest@vogelsinger.at>)
Ответы Re: full featured alter table?  (Tino Wildenhain <tino@wildenhain.de>)
Список pgsql-general
Ernest E Vogelsinger <ernest@vogelsinger.at> writes:
> If some frontende decides to display the columns in a particular order, ok,
> but it should store this order somewhere else, either in its own private
> tables, a configuration or ini file, or elsewhere. It simply doesn't belong
> to the database layout, or pg_attribute.

The trouble with that rationale is that if you are using several
different tools, you'd probably like them to agree on what the column
ordering is.  If the tools all have to invent their own private storage
methods for ordering info, this will never happen.

Also, if history is any guide, people will not like admin tools that
clutter the database with add-on tables in which to store info like
this.  pgAdmin (or was it pgaccess?) used to do that some versions back,
and it was a big annoyance.  Perhaps the availability of schemas in
current releases would mitigate that problem, but I'd still prefer to
use a tool that doesn't need such things.

Finally, no tool can affect the behavior of "SELECT *" or INSERT-without-
a-column-list, if there's no support for it in the database.  Whatever
your opinions on the safety of using these constructs in application
code, people do use 'em a lot in hand-typed SQL.  If these constructs
do not follow the column order that a user is used to seeing in his
admin tool, you are opening yourself up to problems.

            regards, tom lane

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

Предыдущее
От: John Smith
Дата:
Сообщение: Re: Lyris -> PG 7.1.3
Следующее
От: Tom Lane
Дата:
Сообщение: Re: full featured alter table?