Re: [HACKERS] Re:pg_dump barfs?

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] Re:pg_dump barfs?
Дата
Msg-id 199905072258.SAA14044@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Re:pg_dump barfs?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> and since the column order of Child is different from before,
> a plain COPY won't reload it correctly (neither will an INSERT
> without explicit column labels).  What I'd suggest doing is
> dumping the old DB with pg_dump -o and then using a sed script
> or a quick little perl program to reorder the fields in the COPY
> data before you reload.

Good summary.  Another idea is to create temp uninherited copies of the
tables using SELECT A,B INTO TABLE new FROM ... and make the orderings
match, delete the old tables, recreate with inheritance, and do INSERT
.. SELECT, except you say you can't load oids.  Oops, that doesn't help.

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] pg_dump problem?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Hashjoin status report