Re: [GENERAL] pg_dump --compress error

2010-08-31 Thread Alvaro Herrera
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

Re: [GENERAL] pg_dump --compress error

2010-08-31 Thread Joshua D. Drake
On Tue, 2010-08-31 at 00:50 -0700, yasin malli wrote: > I tried it and it ran without any error but my table wasn't created so > problem is going on. > compress level isn't important because when I controlled it gave me > same results ( 5 or 9 ) > > Unfortunately, only plain-old dump works correct

Re: [GENERAL] pg_dump --compress error

2010-08-31 Thread Tom Lane
yasin malli writes: > Unfortunately, only plain-old dump works correctly while restoring. > if command contains any compress option, it won't work --compress is normally used as an adjunct to -Fc. I'm not real sure what you get if you specify it without that; maybe a compressed plain-text-script

Re: [GENERAL] pg_dump --compress error

2010-08-31 Thread yasin malli
I tried it and it ran without any error but my table wasn't created so problem is going on. compress level isn't important because when I controlled it gave me same results ( 5 or 9 ) Unfortunately, only plain-old dump works correctly while restoring. if command contains any compress option, it wo

Re: [GENERAL] pg_dump --compress error

2010-08-30 Thread Alban Hertroys
On 31 Aug 2010, at 8:17, yasin malli wrote: Don't reply to just me, include the list. > if I took my dump file with 'pg_dump -Ft ' command, I would use 'pg_restore', > but I take my dump file at plain-old format for compressing data ( tar format > dump hasn't compress feature ) > when I tried y

Re: [GENERAL] pg_dump --compress error

2010-08-30 Thread Alban Hertroys
On 31 Aug 2010, at 6:44, yasin malli wrote: > 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 ? By using pg_restore