Re: pg_dump --compress error

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: pg_dump --compress error
Дата
Msg-id 1283273977-sup-8605@alvh.no-ip.org
обсуждение исходный текст
Ответ на pg_dump --compress error  (yasin malli <yasinmalli@gmail.com>)
Ответы optimization (can I move pgsql_tmp)?  (Ozz Nixon <ozznixon@gmail.com>)
Список pgsql-general
Excerpts from yasin malli's message of mar ago 31 00:44:36 -0400 2010:
> Hi everyone.
>
> I try this command ' pg_dump --compress=5 DBNAME > ***.sql ' and ' psql -f
> ***.sql -d DBNAME '
> but I take some error because of compression. how can restore compressed
> dump file without taking any error ?

You can restore this with

zcat ***.sql | psql -d DBNAME

(or "gunzip -c ***.sql" if you don't have zcat)

--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: are there any documents describe the index mechanic?
Следующее
От: akp geek
Дата:
Сообщение: table - sequence dependent information