pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedRestoring from older pg_dump files
3+ messages / 3 participants
[nested] [flat]
* Restoring from older pg_dump files
@ 2007-04-13 23:04 Brooks, Jason <Jason.Brooks@windriver.com>
0 siblings, 2 replies; 3+ messages in thread
From: Brooks, Jason @ 2007-04-13 23:04 UTC (permalink / raw)
To: pgsql-admin
Hello,
I have a data file dumped from a pgsql database version 7.1.2. I am
having troubles restoring this data to a new database server version
8.1.5. Are there some gotcha's involved, did the format change, or some
such?
I have used the createdb command to make the basic database. it's when
I use the \i option in psql that I see invalid commands, syntax errors,
invalid roles, etc.
The original file was created with pg_dump -cou.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jason Brooks ~ (503) 641-3440 x1861
Direct ~ (503) 924-1861
Email to: jason.brooks@windriver.com
Twiki: http://twiki.wrs.com/do/view/Main/JasonBrooks
Senior Systems Administration Analyst
Wind River Systems
8905 SW Nimbus ~ Suite 255
Beaverton, Or 97008
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Restoring from older pg_dump files
@ 2007-04-13 23:48 Joshua D. Drake <jd@commandprompt.com>
parent: Brooks, Jason <Jason.Brooks@windriver.com>
1 sibling, 0 replies; 3+ messages in thread
From: Joshua D. Drake @ 2007-04-13 23:48 UTC (permalink / raw)
To: Brooks, Jason <Jason.Brooks@windriver.com>; +Cc: pgsql-admin
Brooks, Jason wrote:
> Hello,
>
> I have a data file dumped from a pgsql database version 7.1.2. I am
> having troubles restoring this data to a new database server version
> 8.1.5. Are there some gotcha's involved, did the format change, or some
> such?
If you still have the 7.1.2 database use the 8.1.5 (you should be
running 8.1.8) pg_dump to connect and make the backup. Then restore.
J
>
> I have used the createdb command to make the basic database. it's when
> I use the \i option in psql that I see invalid commands, syntax errors,
> invalid roles, etc.
>
> The original file was created with pg_dump -cou.
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Jason Brooks ~ (503) 641-3440 x1861
> Direct ~ (503) 924-1861
> Email to: jason.brooks@windriver.com
> Twiki: http://twiki.wrs.com/do/view/Main/JasonBrooks
>
> Senior Systems Administration Analyst
> Wind River Systems
> 8905 SW Nimbus ~ Suite 255
> Beaverton, Or 97008
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
--
=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive PostgreSQL solutions since 1997
http://www.commandprompt.com/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Restoring from older pg_dump files
@ 2007-04-14 00:51 Tom Lane <tgl@sss.pgh.pa.us>
parent: Brooks, Jason <Jason.Brooks@windriver.com>
1 sibling, 0 replies; 3+ messages in thread
From: Tom Lane @ 2007-04-14 00:51 UTC (permalink / raw)
To: Brooks, Jason <Jason.Brooks@windriver.com>; +Cc: pgsql-admin
"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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2007-04-14 00:51 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-04-13 23:04 Restoring from older pg_dump files Brooks, Jason <Jason.Brooks@windriver.com>
2007-04-13 23:48 ` Joshua D. Drake <jd@commandprompt.com>
2007-04-14 00:51 ` Tom Lane <tgl@sss.pgh.pa.us>
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