pg.ddx.io  pgsql-pkg-debian@postgresql.org mailing list archive  
help / color / mirror / Atom feed
howto upgrade from 8.4 to 9.2 without the remove & install of postgresql
4+ messages / 3 participants
[nested] [flat]

* howto upgrade from 8.4 to 9.2 without the remove & install of postgresql
@ 2012-12-23 08:17  Michael Wuttke <m.wuttke@elektropost.org>
  0 siblings, 2 replies; 4+ messages in thread

From: Michael Wuttke @ 2012-12-23 08:17 UTC (permalink / raw)
  To: pgsql-pkg-debian

Hello,

I am using debian squeeze with postgresql-8.4 and I've tried to upgrade
my postgresql installation to the pdgd-version 9.2, as descript in the
instructions of your announcement:
http://archives.postgresql.org/pgsql-announce/2012-12/msg00008.php.

The upgrade from the debian squeeze package
(postgresql-8.4.13-0squeeze1) to the pgdg package
(postgresql-8.4.15-1.pgdg) works fine.

But the upgrade from the debian pgdg package (postgresql-8.4.15-1.pgdg)
to the debian pgdg package (postgresql-9.2.2-1.pgdg) unfortunately does
not work, as I had expected.

I had two postgresql installations, one postgresql 8.4 installation
listening on port 5432 and one postgresql 9.2 installation listening on
port 5433. Both postgresql installations could be started and stopped
with the /etc/intit-script. But the installations on postgresql-8.4 were
unavailable.

So I dumped the databases on the postgresql-8.4 server, removed all the
postgresql-8.4 packages, installed then the postgresql-9.2 and
reimported the dumps.

Now a have working postgresql-9.2 server.

My question ist, is there an easier way to upgrade postgresql from 8.4
to 9.2 under debian squeeze without removing & installing all the
packages of postgresql?

Thank you for your work, that's what I've been waiting for!
Michael


-- 
Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-pkg-debian



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: howto upgrade from 8.4 to 9.2 without the remove & install of postgresql
@ 2012-12-28 12:09  Christoph Berg <myon@debian.org>
  parent: Michael Wuttke <m.wuttke@elektropost.org>
  1 sibling, 0 replies; 4+ messages in thread

From: Christoph Berg @ 2012-12-28 12:09 UTC (permalink / raw)
  To: Michael Wuttke <m.wuttke@elektropost.org>; +Cc: pgsql-pkg-debian

Re: Michael Wuttke 2012-12-23 <50D6BE18.6050103@elektropost.org>
> But the upgrade from the debian pgdg package (postgresql-8.4.15-1.pgdg)
> to the debian pgdg package (postgresql-9.2.2-1.pgdg) unfortunately does
> not work, as I had expected.
> 
> I had two postgresql installations, one postgresql 8.4 installation
> listening on port 5432 and one postgresql 9.2 installation listening on
> port 5433. Both postgresql installations could be started and stopped
> with the /etc/intit-script. But the installations on postgresql-8.4 were
> unavailable.

I don't really get the problem description. Do you mean you had 2
installations before doing the change, or just after installing 9.2?

It is expected that installing postgresql-9.2 will create a new
cluster on port 5433 (or generally N+1). If you want your old data to
be migrated, drop the new (empty) cluster, and use pg_upgradecluster
on the 8.4 one.

(Btw, nothing of this is PGDG-specific, it works just like that if you
are upgrading to a new PostgreSQL version in pure Debian.)

Christoph
-- 
cb@df7cb.de | http://www.df7cb.de/


-- 
Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-pkg-debian



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: howto upgrade from 8.4 to 9.2 without the remove & install of postgresql
@ 2013-01-03 16:04  Martin Pitt <mpitt@debian.org>
  parent: Michael Wuttke <m.wuttke@elektropost.org>
  1 sibling, 1 reply; 4+ messages in thread

From: Martin Pitt @ 2013-01-03 16:04 UTC (permalink / raw)
  To: Michael Wuttke <m.wuttke@elektropost.org>; +Cc: pgsql-pkg-debian

Hallo Michael,

Michael Wuttke [2012-12-23  9:17 +0100]:
> The upgrade from the debian squeeze package
> (postgresql-8.4.13-0squeeze1) to the pgdg package
> (postgresql-8.4.15-1.pgdg) works fine.
> 
> But the upgrade from the debian pgdg package (postgresql-8.4.15-1.pgdg)
> to the debian pgdg package (postgresql-9.2.2-1.pgdg) unfortunately does
> not work, as I had expected.

It does not happen automatically, after installing 9.2 you will still
have your original 8.4 cluster plus a new default one for 9.2. Please
see /usr/share/doc/postgresql-common/README.Debian.gz for details.

Thanks,

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)


-- 
Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-pkg-debian



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: howto upgrade from 8.4 to 9.2 without the remove & install of postgresql
@ 2013-01-04 09:42  Michael Wuttke <m.wuttke@elektropost.org>
  parent: Martin Pitt <mpitt@debian.org>
  0 siblings, 0 replies; 4+ messages in thread

From: Michael Wuttke @ 2013-01-04 09:42 UTC (permalink / raw)
  To: pgsql-pkg-debian

Hallo Martin,

thank you for your hint. Now it is clear.

Who can read is clearly in advantage. ;-)

Thanks,
Michael

Am 03.01.13 17:04, schrieb Martin Pitt:
> Hallo Michael,
> 
> It does not happen automatically, after installing 9.2 you will still
> have your original 8.4 cluster plus a new default one for 9.2. Please
> see /usr/share/doc/postgresql-common/README.Debian.gz for details.
> 
> Thanks,
> 
> Martin
> 


-- 
Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-pkg-debian



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2013-01-04 09:42 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-12-23 08:17 howto upgrade from 8.4 to 9.2 without the remove & install of postgresql Michael Wuttke <m.wuttke@elektropost.org>
2012-12-28 12:09 ` Christoph Berg <myon@debian.org>
2013-01-03 16:04 ` Martin Pitt <mpitt@debian.org>
2013-01-04 09:42   ` Michael Wuttke <m.wuttke@elektropost.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox