pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mike Miller <temp6453@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: Restoring pg_dump's made using COPY commands
Date: Tue, 17 Feb 2004 02:59:15 +0000
Message-ID: <BAY1-F35rhUaCxyst110000ba76@hotmail.com> (raw)

Hi,
  I'm trying to restore two dumps, one from 7.1.3 and the other from a 6.5.3 
series PgSQL server.  These dumps were both made using standard 'pg_dump > 
output' commands (specifying the host where needed on one of them).  When I 
run the database restore by doing execute-file in psql, piping the file to 
psql, or even attempting pg_restore (whcih doesn't work on these plain text 
databases), I receive messages pertaining to:
  invalid command \N
  invalid command \.
  parse error at the end of line
  <occasionally messages about missing fields>

However this dump just came from a pg_dump, so it really should be working.  
I've tried every combination of pg_dump and psql versions from 7.4.1, 7.3.3, 
7.1.3, 6.5.3 in order to get this to work right without any luck.

Can anyone help me out with what is wrong?  I'm looking to make this a 
backup method, and if I can't restore the data, it doesn't do me much good 
(and I'm trying to restore some existing data).  Ultimately want to move 
them all up to 7.4.x

Any ideas as to what causes these errors?  Anything I can do to fix the 
output of pg_dump?

Thanks!
-Mike

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpa...




view thread (3+ messages)  latest in thread

Message-ID: <BAY1-F35rhUaCxyst110000ba76@hotmail.com>
Permalink:  ../BAY1-F35rhUaCxyst110000ba76@hotmail.com/
Also on:    postgresql.org/message-id/BAY1-F35rhUaCxyst110000ba76@hotmail.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-admin@postgresql.org
  Cc: temp6453@hotmail.com
  Subject: Re: Restoring pg_dump's made using COPY commands
  In-Reply-To: <BAY1-F35rhUaCxyst110000ba76@hotmail.com>
  References: <BAY1-F35rhUaCxyst110000ba76@hotmail.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