Re: pg_dump table ordering bug [8.0.1]

Поиск
Список
Период
Сортировка
От Gerard Krupa
Тема Re: pg_dump table ordering bug [8.0.1]
Дата
Msg-id OF08651929.A90A753E-ON80256FA4.0031D4DA-80256FA4.00374D59@uk.marconicomms.com
обсуждение исходный текст
Ответ на pg_dump table ordering bug [8.0.1]  (Andreas Lange <anlan@ida.liu.se>)
Ответы Re: pg_dump table ordering bug [8.0.1]  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Andreas Lange wrote :

> Hi!
>
> Our upgrade from 7.4.6 to 8.0.1 only had one small glitch. Two tables got
dumped in the wrong order
> (before their dependecies) and had to get their contents added manually
after the restore. I've atleast
> isolated the part where things go wrong.

I've experienced a similar problem with a data-only dump using 8.0.1's
pg_dump.  It seems that the COPYs (or INSERTs) are generated in
alphabetical order of table name, ignoring foreign key contraints and
requiring the output to be post-processed.  In a full dump of the database
the constraints are added after the data is inserted so there are no
problems.  See the two attached dumps of the same database as an example.

I am running under HP-UX 11.11 on PA-RISC 2.0, (both 32- and 64-bit builds
tried) built using the native ANSI C compiler.  All tests passed when
running 'make check'.

Gerard Krupa MBCS
Marconi Corporation

(See attached file: data-only.sql)(See attached file: full.sql)

Вложения

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

Предыдущее
От: Michael Meskes
Дата:
Сообщение: Re: 8.0 ecpg crashes with "create table as" statement.
Следующее
От: "Gerard Krupa"
Дата:
Сообщение: BUG #1474: pg_dump outputs tables in wrong order