Unix Technical Forum

how do I import pqsl 7.1 database into 8.0

This is a discussion on how do I import pqsl 7.1 database into 8.0 within the pgsql Novice forums, part of the PostgreSQL category; --> hello list, I have gone through FAQs, still got problem. so I just ask the question here. we got ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Novice

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 09:24 PM
Mike Shen
 
Posts: n/a
Default how do I import pqsl 7.1 database into 8.0

hello list,

I have gone through FAQs, still got problem. so I just ask the question here.

we got a suse box running postgresql 7.1. now we are building a new box to replace it. the new machine is running fedora core 4 with postgresql 8.0.

on the old box, we did pg_dump drbooks > drbooks.out
on the new one, createdb drbooks
then pg_restore -d drbooks -Fc drbooks.out
we got error "did not find magic string in the file header"

what can we do to fix that?

any input welcome.

Regards,

Mike





---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 09:24 PM
Tom Lane
 
Posts: n/a
Default Re: how do I import pqsl 7.1 database into 8.0

Mike Shen <x.shen@orcon.net.nz> writes:
> on the old box, we did pg_dump drbooks > drbooks.out
> on the new one, createdb drbooks
> then pg_restore -d drbooks -Fc drbooks.out
> we got error "did not find magic string in the file header"


pg_dump would have produced a plain-text dump, which you should feed to
psql not pg_restore.

regards, tom lane

---------------------------(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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:01 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com