pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Phuong Ma <pma@commandprompt.com>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql sql <pgsql-sql@postgresql.org>
Subject: Re: restoring a dump
Date: Thu, 28 Jun 2001 16:32:47 -0700
Message-ID: <3B3BBE9F.48D125F5@commandprompt.com> (raw)
References: <Pine.LNX.4.30.0106282326370.724-100000@peter.localdomain>

Peter Eisentraut wrote:
> 
> Phuong Ma writes:
> 
> > pg_dump -C -D -F t > test.tar
> > tar -xvf test.tar
> > psql restore.sql
> > psql test < 19.dat
> > psql test < 20.dat .. and so on
> > psql test < toc.dat
> 
> I believe you're supposed to use pg_restore on the tar file itself.
> 
> --
> Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter

I tried using pg_restore, but it did not restore the dump successfully. 
Maybe it is the syntax I'm using, but I remember reading that you cannot
use the pg_restore to restore a dump that uses INSERT.  Does anyone know
of a way I could undump my db?



view thread (4+ messages)  latest in thread

Message-ID: <3B3BBE9F.48D125F5@commandprompt.com>
Permalink:  ../3B3BBE9F.48D125F5@commandprompt.com/
Also on:    postgresql.org/message-id/3B3BBE9F.48D125F5@commandprompt.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: pma@commandprompt.com, peter_e@gmx.net
  Subject: Re: restoring a dump
  In-Reply-To: <3B3BBE9F.48D125F5@commandprompt.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