Re: pg_restore --data-only (-a) does not work

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_restore --data-only (-a) does not work
Дата
Msg-id 24474.1056684807@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_restore --data-only (-a) does not work  ("Barna, Gary" <Gary.Barna@storagenetworks.com>)
Список pgsql-admin
"Barna, Gary" <Gary.Barna@storagenetworks.com> writes:
> bash-2.03$ pg_restore -c -a -d [dbname] ../data/backups/[-Fc Archive]
> pg_restore: [archiver (db)] error returned by PQputline

Lessee ... you drop all the tables (-c) and then try to restore data
without recreating them (-a) ... not too surprising it doesn't work.
I agree the error message sucks though.

FWIW, CVS tip seems to be bright enough to ignore -c when used in
combination with -a; also it gives a more useful message when there
is a failure during a COPY command.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Newbie question
Следующее
От: "Alexnder A. Kapralov"
Дата:
Сообщение: order by problem