Re: pg_dump --compress error - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: pg_dump --compress error
Date
Msg-id 1283273977-sup-8605@alvh.no-ip.org
Whole thread Raw
In response to pg_dump --compress error  (yasin malli <yasinmalli@gmail.com>)
Responses optimization (can I move pgsql_tmp)?
List 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 by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: are there any documents describe the index mechanic?
Next
From: akp geek
Date:
Subject: table - sequence dependent information