Unix Technical Forum

newbie question

This is a discussion on newbie question within the pgsql Interfaces Pgadmin Support forums, part of the PostgreSQL category; --> Recently, I upgraded my OS from RH8 to Fedora. This implicitly upgraded my database to PG7.4.6 from PG7.2.X. Due ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces Pgadmin Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 08:14 PM
Sameer Sharma
 
Posts: n/a
Default newbie question

Recently, I upgraded my OS from RH8 to Fedora.
This implicitly upgraded my database to PG7.4.6
from PG7.2.X.
Due to this I am unable to use the existing database,
since starting postmaster with the same Data gives an
initializing data dictionary error (Incompatible
between versions).
What options do I have in order to save my data?

Thanks

Sameer





__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 08:14 PM
Andreas Pflug
 
Posts: n/a
Default Re: newbie question

Sameer Sharma wrote:

>Recently, I upgraded my OS from RH8 to Fedora.
>This implicitly upgraded my database to PG7.4.6
>from PG7.2.X.
>Due to this I am unable to use the existing database,
>since starting postmaster with the same Data gives an
>initializing data dictionary error (Incompatible
>between versions).
>What options do I have in order to save my data?
>
>


Wrong list.
You probably have to downgrade to 7.2 to get your data back.

Regards,
Andreas


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-17-2008, 08:14 PM
A.j. Langereis
 
Posts: n/a
Default Re: newbie question

More information on upgrading PostgreSQL can be found in the manual:

For you that would be:
http://www.postgresql.org/docs/7.4/i...upgrading.html

Your sincerely,

Aarjan Langereis

----- Original Message -----
From: "Andreas Pflug" <pgadmin@pse-consulting.de>
To: "Sameer Sharma" <sash_us2000@yahoo.com>
Cc: <pgadmin-support@postgresql.org>
Sent: Wednesday, November 16, 2005 11:23 PM
Subject: Re: [pgadmin-support] newbie question


> Sameer Sharma wrote:
>
> >Recently, I upgraded my OS from RH8 to Fedora.
> >This implicitly upgraded my database to PG7.4.6
> >from PG7.2.X.
> >Due to this I am unable to use the existing database,
> >since starting postmaster with the same Data gives an
> >initializing data dictionary error (Incompatible
> >between versions).
> >What options do I have in order to save my data?
> >
> >

>
> Wrong list.
> You probably have to downgrade to 7.2 to get your data back.
>
> Regards,
> Andreas
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match
>
>



---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-17-2008, 08:15 PM
Miha Radej
 
Posts: n/a
Default Re: newbie question

hi!

i once had a similair problem, but due to a partial hard drive failure.
all i needed was the data directory from the 7.2 version. i then
installed pgsql7.2 into a different directory and ran the 7.2 server
with the -D parameter pointing to the old data directory. next, i ran
pg_dump and pg_dump_all to dump all my user/database info which i then
imported into pgsql7.4. i have to say i encountered no errors in the
process so it went through rather smoothly. you can also run both
versions at the same time, you just need to change the port from 5432 to
something else, ie 5433 for one version.

so as long as you have your data directory intact, you should imo have
no big problems getting your data from one to another version. there may
be other solutions but this one worked for me

good luck,
M

Sameer Sharma wrote:
> Recently, I upgraded my OS from RH8 to Fedora.
> This implicitly upgraded my database to PG7.4.6
> from PG7.2.X.
> Due to this I am unable to use the existing database,
> since starting postmaster with the same Data gives an
> initializing data dictionary error (Incompatible
> between versions).
> What options do I have in order to save my data?


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

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 10:43 AM.


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