From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kumar <sgnerd@yahoo.com.sg>
Cc: psql <pgsql-sql@postgresql.org>
Subject: Re: Unable to user pg_restore
Date: Mon, 20 Oct 2003 12:49:06 -0400
Message-ID: <3437.1066668546@sss.pgh.pa.us> (raw)
In-Reply-To: <00fb01c3970a$5f95b620$7502a8c0@hdsc.com>
References: <00fb01c3970a$5f95b620$7502a8c0@hdsc.com>
"Kumar" <sgnerd@yahoo.com.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, sgnerd@yahoo.com.sg
Subject: Re: Unable to user pg_restore
In-Reply-To: <3437.1066668546@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox