X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id D3FFBD1B4EF for ; Mon, 20 Oct 2003 16:49:37 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 59751-03 for ; Mon, 20 Oct 2003 13:49:07 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 7B8C6D1B555 for ; Mon, 20 Oct 2003 13:49:06 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h9KGn6it003438; Mon, 20 Oct 2003 12:49:06 -0400 (EDT) To: "Kumar" Cc: "psql" Subject: Re: Unable to user pg_restore In-reply-to: <00fb01c3970a$5f95b620$7502a8c0@hdsc.com> References: <00fb01c3970a$5f95b620$7502a8c0@hdsc.com> Comments: In-reply-to "Kumar" message dated "Mon, 20 Oct 2003 18:31:57 +0530" Date: Mon, 20 Oct 2003 12:49:06 -0400 Message-ID: <3437.1066668546@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/241 X-Sequence-Number: 15641 "Kumar" 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