pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Phuong Ma <pma@commandprompt.com>
To: pgsql sql <pgsql-sql@postgresql.org>
Subject: restoring a dump
Date: Thu, 28 Jun 2001 11:13:01 -0700
Message-ID: <3B3B73AD.EEB7DAEE@commandprompt.com> (raw)

Hello,
  I have been trying to restore my dump and it seems like it is not
working.  I put the dump in a tar file and when I untarred it, there are
several .dat files, a toc.dat file, and a restore.sql file.  I used psql
to restore these files into a database.  I first started restoring the
restore.sql file, then the .dat files, and lastly, the toc.dat.  When I
did the toc.dat file, I received an error message.  These are the  

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

This is the error message:
ERROR:  parser: parse error at or near "pgdmp"
CHANGE
ERROR:  non-existent group "test"
ERROR:  parser: parse error at or near """
ERROR:  parser: parse error at or near """
ERROR:  parser: parse error at or near """
ERROR:  parser: parse error at or near """
ERROR:  parser: parse error at or near """
ERROR:  parser: parse error at or near """
ERROR:  parser: parse error at or near """
ERROR:  parser: parse error at or near """
ERROR:  parser: parse error at or near """

I also tried using the pg_restore, but I don't know how that would work
on these separate files.  Is there another way I can restore the dump? 
Maybe an easier way than what I have been using?  And do I need to
restore what is in the toc.dat?

Thank you for your help.



view thread (4+ messages)  latest in thread

Message-ID: <3B3B73AD.EEB7DAEE@commandprompt.com>
Permalink:  ../3B3B73AD.EEB7DAEE@commandprompt.com/
Also on:    postgresql.org/message-id/3B3B73AD.EEB7DAEE@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
  Subject: Re: restoring a dump
  In-Reply-To: <3B3B73AD.EEB7DAEE@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