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

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Diffrent column ordering after dump/restore tables with INHERITS
Дата
Msg-id 407d949e0907050915g5ba96ecdt24e831276d8b7213@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Diffrent column ordering after dump/restore tables with INHERITS  (Greg Stark <gsstark@mit.edu>)
Список pgsql-bugs
On Sun, Jul 5, 2009 at 5:10 PM, Greg Stark<gsstark@mit.edu> wrote:
> On Sun, Jul 5, 2009 at 4:28 PM, Tom Lane<tgl@sss.pgh.pa.us> wrote:
>> when i done dump->restore i
>>> have surprise,
>>> Column ordering was changed.
>>
>> This is not a bug, it's the intended behavior.
>
> I thought that was a bug

Rereading the thread I'll also mention that your fix causes a
different problem. Every column becomes marked as having being created
in the child table which wasn't the case originally.

If you later drop one of those columns from the parent table it's
supposed to cascade to the children but it won't because now postgres
thinks the child had those columns defined independently.

In the current setup we can get either the shared vs local definition
above correct or we can get the ordering correct. Getting both correct
would require a rework of either the way inheritance works or the way
column ordering works.

--
greg
http://mit.edu/~gsstark/resume.pdf

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

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