pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Brooks, Jason <Jason.Brooks@windriver.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Restoring from older pg_dump files
Date: Fri, 13 Apr 2007 20:51:44 -0400
Message-ID: <27270.1176511904@sss.pgh.pa.us> (raw)
In-Reply-To: <796EF5B39103EE45A04CC2FFFCF130B9D80790@ala-mail08.corp.ad.wrs.com>
References: <796EF5B39103EE45A04CC2FFFCF130B9D80790@ala-mail08.corp.ad.wrs.com>

"Brooks, Jason" <Jason.Brooks@windriver.com> writes:
> The original file was created with pg_dump -cou.  

One thing that's probably biting you is that 8.1 defaults to WITHOUT
OIDS, which is not an option 7.1 pg_dump even knows exists, so it's
not going to say WITH OIDS in the create commands, and then the
COPY WITH OIDS commands will fail ...

I concur with Josh's to use the newer version's pg_dump, but if you
can't, setting default_with_oids = true will probably help.  There
might be some lesser gotchas too --- what sorts of errors do you
get exactly after fixing that?

			regards, tom lane



view thread (3+ messages)

Message-ID: <27270.1176511904@sss.pgh.pa.us>
Permalink:  ../27270.1176511904@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27270.1176511904@sss.pgh.pa.us

 · 

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, Jason.Brooks@windriver.com
  Subject: Re: Restoring from older pg_dump files
  In-Reply-To: <27270.1176511904@sss.pgh.pa.us>

* 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