Skip site navigation (1) Skip section navigation (2)

Re: Restoring from older pg_dump files

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Brooks, Jason" <Jason(dot)Brooks(at)windriver(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Restoring from older pg_dump files
Date: 2007-04-14 00:51:44
Message-ID: 27270.1176511904@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-admin
"Brooks, Jason" <Jason(dot)Brooks(at)windriver(dot)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

In response to

pgsql-admin by date

Next:From: ogjunk-pgjedanDate: 2007-04-14 00:55:04
Subject: REINDEX using only 1 CPU (of 2)
Previous:From: Joshua D. DrakeDate: 2007-04-13 23:48:03
Subject: Re: Restoring from older pg_dump files

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group