Re: Upgrading from 8.0 to 8.1 on Debian

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Assad Jarrahian <jarraa(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Upgrading from 8.0 to 8.1 on Debian
Date: 2005-11-18 23:26:42
Message-ID: 20051118232642.GA6026@ns.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

* Assad Jarrahian (jarraa(at)gmail(dot)com) wrote:
> jarraa(at)proximity:/etc/postgresql-common$ sudo pg_upgradecluster 8.0 main
> Error: target cluster 8.1/main already exists

This is complaining that you already did an initdb on the 8.1 version, I
believe.

> What would be the step by step process in this case? I would like to
> backup the db (plus its data), then point everything to the new
> Postgresql version and get all my db's on to that.

Basically you should be able to modify
/etc/postgresql/8.1/postmaster.conf (iirc) and get the 8.1 postmaster
running on some alternate port. You can then use pg_restore to load up
all your data from your 8.0 install into your 8.1 install. Then you
just need to stop your 8.0 postmaster, modify the port for your 8.1
postmaster to the 'normal' one and restart it.

Basically, Debian lets you have both installed. Once you're happy with
your 8.1 install you can remove/purge your 8.0 packages. Just to note:
I havn't actually done this myself yet (been thinking about it though).
Also, this isn't entirely appropriate for this list (being
a Debian-specific question). You can file a bug on
http://bugs.debian.org asking for additional documentation to be
included in the package, or if you run into problems.

Enjoy,

Stephen

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeremy Sellors 2005-11-18 23:29:29 Createlang plpgsql
Previous Message Jeremy Palmer 2005-11-18 22:05:16 DISTINCT ON