pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sven Willenberger <sven@dmv.com>
To: Nageshwar Rao <NageshwarR@PLANETASIA.COM>
Cc: 'pgsql-general@postgresql.org' <pgsql-general@postgresql.org>
Subject: Re: pg_restore
Date: Tue, 05 Apr 2005 10:05:37 -0400
Message-ID: <1112709937.12338.23.camel@lanshark.dmv.com> (raw)
In-Reply-To: <3214799999CED64882731155DB0AAD922CEAB7@MLSW00103>
References: <3214799999CED64882731155DB0AAD922CEAB7@MLSW00103>

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




view thread (67+ messages)  latest in thread

Message-ID: <1112709937.12338.23.camel@lanshark.dmv.com>
Permalink:  ../1112709937.12338.23.camel@lanshark.dmv.com/
Also on:    postgresql.org/message-id/1112709937.12338.23.camel@lanshark.dmv.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: sven@dmv.com, NageshwarR@PLANETASIA.COM
  Subject: Re: pg_restore
  In-Reply-To: <1112709937.12338.23.camel@lanshark.dmv.com>
  References: <3214799999CED64882731155DB0AAD922CEAB7@MLSW00103> <1112709937.12338.23.camel@lanshark.dmv.com>

* 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