X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9EE7A5337A for ; Tue, 5 Apr 2005 15:05:40 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 52031-01 for ; Tue, 5 Apr 2005 14:05:32 +0000 (GMT) Received: from smtp-gw-cl-d.dmv.com (smtp-gw-cl-d.dmv.com [216.240.97.42]) by svr1.postgresql.org (Postfix) with ESMTP id AF85F53350 for ; Tue, 5 Apr 2005 15:05:29 +0100 (BST) Received: from lanshark.dmv.com (lanshark.dmv.com [216.240.97.46]) by smtp-gw-cl-d.dmv.com (8.12.10/8.12.10) with ESMTP id j35ENpWa090460; Tue, 5 Apr 2005 10:23:54 -0400 (EDT) (envelope-from sven@dmv.com) Subject: Re: pg_restore From: Sven Willenberger To: Nageshwar Rao Cc: "'pgsql-general@postgresql.org'" In-Reply-To: <3214799999CED64882731155DB0AAD922CEAB7@MLSW00103> References: <3214799999CED64882731155DB0AAD922CEAB7@MLSW00103> Content-Type: text/plain Date: Tue, 05 Apr 2005 10:05:37 -0400 Message-Id: <1112709937.12338.23.camel@lanshark.dmv.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.48 on 216.240.97.42 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.327 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_WHOIS X-Spam-Level: X-Archive-Number: 200504/278 X-Sequence-Number: 76191 On Tue, 2005-04-05 at 12:10 +0530, Nageshwar Rao wrote: > Hi, > > I took a dump using the following command > > Pg_dump -f bk.dmp > > > When I tried to restore a table from the dump it just hangs there > > Pg_restore -f bk.dump -t table_name > > > Also tried by giving username also > > Any light on this. pg_restore [OPTION]... [FILE] in this case don't use -f (as that represents "output" file name) try pg_restore -d db_name -t table_name -U username bk.dmp Sven