Re: change natural column order

Поиск
Список
Период
Сортировка
От Mage
Тема Re: change natural column order
Дата
Msg-id 41AC9DA3.8040901@mage.hu
обсуждение исходный текст
Ответ на Re: change natural column order  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane wrote:

>Richard Huxton <dev@archonet.com> writes:
>
>
>>I think you'll find you're out of luck. IIRC there was some discussion
>>on the hackers list regarding a mapping layer that would let you
>>re-order columns. I think the decision was "too much work for too small
>>a gain".
>>
>>
>
>Yup, that was exactly the conclusion.  Too much work and too much risk
>of introducing bugs (by using the wrong one of logical and physical
>column number in any given place).
>
>You really have to drop and recreate the table if you want to reorder
>the columns.
>
>
This can be hard if you have foreign keys. I used dump, edit, and
restore the whole database in the past.

       Mage



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

Предыдущее
От: "Max"
Дата:
Сообщение: Re: [ANNOUNCE] USENET vs Mailing Lists Poll ...
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Temporal query question