Re: pg_restore problem!!!

Поиск
Список
Период
Сортировка
От Nick Fankhauser
Тема Re: pg_restore problem!!!
Дата
Msg-id NEBBLAAHGLEEPCGOBHDGAEPEHMAA.nickf@ontko.com
обсуждение исходный текст
Ответ на Re: pg_restore problem!!!  ("David Olbersen" <DOlbersen@stbernard.com>)
Список pgsql-admin
> To nit-pick, this is a "useless use of cat".
>
> In UNIX-land, simple input redirection will work much better:
>
>   psql [dbname and various options] < [filename]

Good point... to elaborate further, the reason I was in a piping mindset is
that with a large database, it also makes sense to compress on the fly to
avoid filesystem size limits, so I usually use this pair of commands for
backup/restore:

pg_dump dbname | gzip > dbdumpfile.gz

gunzip -c dbdumpfile | psql dbname

-Nick


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

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: How can I set a default schema for a session
Следующее
От: Ian Barwick
Дата:
Сообщение: Re: How can I set a default schema for a session