Re: Possible to dump/load a database from within psql?

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: Possible to dump/load a database from within psql?
Дата
Msg-id 56A5FFA2.9000303@commandprompt.com
обсуждение исходный текст
Ответ на Possible to dump/load a database from within psql?  (Brian Cardarella <brian@dockyard.com>)
Список pgsql-general
On 01/25/2016 02:16 AM, Brian Cardarella wrote:
> Is it possible, and if so how, to dump and then load a database to/from
> a file from within a psql connection?

pg_dump -h $host -U $user $database|psql -U $user -h $host $database

http://www.postgresql.org/docs/9.5/static/app-pgdump.html

Sincerely,

JD


--
Command Prompt, Inc.                  http://the.postgres.company/
                      +1-503-667-4564
PostgreSQL Centered full stack support, consulting and development.


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: TABLESAMPLE usage
Следующее
От: Vitaly Burovoy
Дата:
Сообщение: Re: ERROR: check constraint - PostgreSQL 9.2