From: | Phuong Ma <pma(at)commandprompt(dot)com> |
---|---|
To: | pgsql sql <pgsql-sql(at)postgresql(dot)org> |
Subject: | restoring a dump |
Date: | 2001-06-28 18:13:01 |
Message-ID: | 3B3B73AD.EEB7DAEE@commandprompt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-sql |
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.
From | Date | Subject | |
---|---|---|---|
Next Message | Jie Liang | 2001-06-28 18:56:25 | timeout |
Previous Message | Harry Yau | 2001-06-28 06:57:37 | Transaction Log |
From | Date | Subject | |
---|---|---|---|
Next Message | Jie Liang | 2001-06-28 18:56:25 | timeout |
Previous Message | Alex Pilosov | 2001-06-28 17:20:15 | Re: Re: Re: Re: binary data |