Re: how to use pg_dump and then restored onto development server

Поиск
Список
Период
Сортировка
От Douglas McNaught
Тема Re: how to use pg_dump and then restored onto development server
Дата
Msg-id m264vx2ncu.fsf@Douglas-McNaughts-Powerbook.local
обсуждение исходный текст
Ответ на Re: how to use pg_dump and then restored onto development server  ("Zlatko Matic" <zlatko.matic1@sb.t-com.hr>)
Список pgsql-general
"Zlatko Matic" <zlatko.matic1@sb.t-com.hr> writes:

> Concerning this question about pg_dump, I'm also confused and don't
> understand when to use pg_restore and when to use psql ?
> For example, how to restore in these two cases:
> A) pg_dump -f D:\MYDB_BCP -c -x -h localhost -U postgres MYDB
> B) pg_dump -f D:\MYDB_BCP -Fc -c -x -h localhost -U postgres MYDB

If you use any of the binary dump formats (-Fc or -Ft), use
pg_restore.  For text dumps (the default) use psql.

-Doug

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PostgreSQL's vacuumdb fails to allocate memory for
Следующее
От: Ciprian Popovici
Дата:
Сообщение: Recovering a broken database