Unix Technical Forum

Upgrading 7.3 -> 7.4.5

This is a discussion on Upgrading 7.3 -> 7.4.5 within the pgsql Admins forums, part of the PostgreSQL category; --> Hi, situation: old server backup. Backup of Postgresql data files. Postgres 7.3.x was running. New server has version 7.4.5 ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 01:25 AM
denis moeller
 
Posts: n/a
Default Upgrading 7.3 -> 7.4.5

Hi,


situation: old server backup. Backup of Postgresql data files. Postgres
7.3.x was running.
New server has version 7.4.5 - how do I get the old data in my new database?
Copying didn't work - complains about different versions.

TIA!


---------------------------(end of broadcast)---------------------------
TIP 9: 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
  #2 (permalink)  
Old 04-10-2008, 01:25 AM
=?iso-8859-1?Q?Gustavo_Franklin_N=F3brega_-_Planae?=
 
Posts: n/a
Default Re: Upgrading 7.3 -> 7.4.5

Hi,

You try to dump with -d (dump data as INSERT, rather than COPY,
commands) option of pg_dump and import this in 7.4?

Atenciosamente,

Gustavo Franklin Nóbrega
Infraestrutura e Banco de Dados
Planae Tecnologia da Informação
(+55) 14 2106-3514
http://www.planae.com.br
----- Original Message -----
From: "denis moeller" <nimbus@latrina.de>
To: <pgsql-admin@postgresql.org>
Sent: Tuesday, February 22, 2005 2:36 PM
Subject: [ADMIN] Upgrading 7.3 -> 7.4.5


> Hi,
>
>
> situation: old server backup. Backup of Postgresql data files. Postgres
> 7.3.x was running.
> New server has version 7.4.5 - how do I get the old data in my new
> database?
> Copying didn't work - complains about different versions.
>
> TIA!
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>



---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 01:25 AM
Scott Marlowe
 
Posts: n/a
Default Re: Upgrading 7.3 -> 7.4.5

On Tue, 2005-02-22 at 11:36, denis moeller wrote:
> Hi,
>
>
> situation: old server backup. Backup of Postgresql data files. Postgres
> 7.3.x was running.
> New server has version 7.4.5 - how do I get the old data in my new database?
> Copying didn't work - complains about different versions.


Read this part of the manual?

http://www.postgresql.org/docs/8.0/s...upgrading.html

---------------------------(end of broadcast)---------------------------
TIP 5: 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-10-2008, 01:25 AM
Bruno Wolff III
 
Posts: n/a
Default Re: Upgrading 7.3 -> 7.4.5

On Tue, Feb 22, 2005 at 18:36:22 +0100,
denis moeller <nimbus@latrina.de> wrote:
>
> situation: old server backup. Backup of Postgresql data files. Postgres
> 7.3.x was running.


You can't take file system level backups under a running postmaster and expect
to use those to recover a database. You either need to shut the postmaster
down or use pg_dump(all) to make a live dump.

> New server has version 7.4.5 - how do I get the old data in my new database?
> Copying didn't work - complains about different versions.


When switching between major versions (such as 7.3.x to 7.4.x) you need to
do a dump and restore. If possible you should use the pg_dump client of
the newer version to do the dump, as newer versions do a better job of
handling dependencies in dumps.

---------------------------(end of broadcast)---------------------------
TIP 7: 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
  #5 (permalink)  
Old 04-10-2008, 01:25 AM
denis moeller
 
Posts: n/a
Default Re: Upgrading 7.3 -> 7.4.5

Well ... I don't have an old version running to make a dump - that would
be easy.
I just got the files in a backup-directory ...
Any ideas?
Thanks!


---------------------------(end of broadcast)---------------------------
TIP 6: 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
  #6 (permalink)  
Old 04-10-2008, 01:25 AM
Bruno Wolff III
 
Posts: n/a
Default Re: Upgrading 7.3 -> 7.4.5

On Tue, Feb 22, 2005 at 20:15:26 +0100,
denis moeller <nimbus@latrina.de> wrote:
> Well ... I don't have an old version running to make a dump - that would
> be easy.
> I just got the files in a backup-directory ...
> Any ideas?
> Thanks!


You can try reinstalling the old version and doing the dump. However if
the postmaster was running when you made the backups you might be in trouble.

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-10-2008, 01:26 AM
Aufkleber24.de
 
Posts: n/a
Default Re: Upgrading 7.3 -> 7.4.5

Well ... I don't have an old version running to make a dump - that would
be easy.
I just got the files in a backup-directory ...
Any ideas?
Thanks!



---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

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 03:00 AM.


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