Re: Diffrent column ordering after dump/restore tables with INHERITS

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Diffrent column ordering after dump/restore tables with INHERITS
Дата
Msg-id 20100226193251.GE3980@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Diffrent column ordering after dump/restore tables with INHERITS  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Diffrent column ordering after dump/restore tables with INHERITS
Список pgsql-bugs
Tom Lane escribió:
> Oleg Serov <serovov@gmail.com> writes:
> > So there are no simple way to do it right, and it will be not fixed? Will
> > this bug appear in todo list?
>
> It's not a bug, it's just what happens when you make the parent and
> child column orders inconsistent.  Would you prefer that we restricted
> ALTER TABLE to refuse to perform the alteration in the first place?

Possibly the right fix is to implement the oft-discussed idea about
columns able to be moved around in table definitions.  That would let
ALTER TABLE ADD COLUMN to put the column in the right positions in
children.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Diffrent column ordering after dump/restore tables with INHERITS
Следующее
От: "kopljan"
Дата:
Сообщение: bug in string comparison