Re: Upgrading PostgreSQL 7.1.3

From: Michal Taborsky <michal(at)taborsky(dot)cz>
To: "ruben20(at)superguai(dot)com" <ruben20(at)superguai(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Upgrading PostgreSQL 7.1.3
Date: 2004-08-25 08:04:54
Message-ID: 412C4826.30104@taborsky.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

ruben20(at)superguai(dot)com wrote:
> What is the most advisable version I should upgrade to? My top goal is
> reliability. Do I have to install/reinstall or upgrade? Do I need to be
> concerned of any special feature when dumping/restoring data? Is there
> any good doc about this?

Go for the latest stable version (currently 7.4.5). Make backups! (More
than one preferably.) My suggestion is to install the new version
alongside the old one on the same machine and make it listen on
different port. Then you can do pg_dump from one directed immediately to
the other. If something fails (and it will, several times, before you
get the dump parameters right), you just ditch the new data directory
and start again with fresh initdb. Also make sure you are using tools
from the new version (pg_dump, psql, ...).

You can do this on live system too. Only after you succeed in
transfering the database, recreate the new one one last time, disable
connections to the original server except from pg_dump and perform the
transfer again (so that you make sure no data gets written to the
original database after you started dumping it.) Then switch the
servers, delete the old one and you are good to go with the new version.
Oh, and did I mention you should make backups?

This worked for me. It is a long way from 7.1 to 7.4 so expect some
fiddling with the pg_dump parameters and maybe some sed-ing in between.

Hope this helps.

--
Michal Taborsky
http://www.taborsky.cz

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Magnus Hagander 2004-08-25 08:11:58 Re: Missing FROM clause
Previous Message Ulrich Wisser 2004-08-25 07:58:53 Missing FROM clause