Re: restoring a dump

From: Phuong Ma <pma(at)commandprompt(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql sql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: restoring a dump
Date: 2001-06-28 23:32:47
Message-ID: 3B3BBE9F.48D125F5@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-sql

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(at)gmx(dot)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?

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Chris Ruprecht 2001-06-28 23:50:47 Programming PostGreSQL - making myself clearer ;-).
Previous Message Peter Eisentraut 2001-06-28 21:27:02 Re: restoring a dump

Browse pgsql-sql by date

  From Date Subject
Next Message Wei Weng 2001-06-29 00:59:03 Re: restoring a dump
Previous Message Josh Berkus 2001-06-28 22:39:16 Re: Still stuck on a left join