Re: dump-restore only one table

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: dump-restore only one table
Дата
Msg-id 46371962.4000904@archonet.com
обсуждение исходный текст
Ответ на dump-restore only one table  (Alexander Kuprijanov <sanya-spb@list.ru>)
Ответы Re: dump-restore only one table  (Alexander Kuprijanov <sanya-spb@list.ru>)
Список pgsql-general
Alexander Kuprijanov wrote:
> I do:
> ==============
> pg_dump -d BaseA --port=54321 --host=localhost --table=TableA --data-only -F
> c -v | pg_restore -d
> BaseB --data-only --no-owner --table=TableA --single-transaction -v
> ==============

> But <BaseB.TableA> wasn't updated.... why??

I'm not sure you can pipe the custom format between pg_dump and
pg_restore (it's got compressed sections). Either:
1. Use a temporary file
2. pipe the standard format to psql

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Alexander Kuprijanov
Дата:
Сообщение: dump-restore only one table
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: [HACKERS] SOS, help me please, one problem towards the postgresql developement on windows