From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Kumar" <sgnerd(at)yahoo(dot)com(dot)sg> |
Cc: | "psql" <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Unable to user pg_restore |
Date: | 2003-10-20 16:49:06 |
Message-ID: | 3437.1066668546@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
"Kumar" <sgnerd(at)yahoo(dot)com(dot)sg> writes:
> $ pg_restore -d sampledbtest -f /home/db_repositorysampledb.sql.tar.gz -F c=
> -v -c -O -h 192.128.2.51 -p 5432 -u
> User name: postgres
This is the wrong way to invoke pg_restore. "-f file" is an *output*
file name. -d and -f are mutually contradictory options ... not sure
why the thing doesn't complain about that. What you want is just
pg_restore -d sampledbtest -v -c -O -h 192.128.2.51 -p 5432 -u inputfilename
Depending on whether -d or -f takes precedence, the program might have
tried to overwrite your dump file; better check.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Huxton | 2003-10-20 17:09:51 | Re: Which is faster SQL or PL/PGSQL |
Previous Message | Michael Pohl | 2003-10-20 15:36:24 | Re: Which is faster SQL or PL/PGSQL |