Re: probs with 7.3 -> 7.4 on debian

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: glenn <gdavy(at)tpg(dot)com(dot)au>
Cc: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: probs with 7.3 -> 7.4 on debian
Date: 2004-01-14 15:08:22
Message-ID: 1074092902.1467.57.camel@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Wed, 2004-01-14 at 14:47, glenn wrote:
> Hi all
> Debian has upgraded me to 7.4 ofpostgres, but when it tries to start
> postgres I get an error mentioning that the data is in 7.3 format and
> needs to be upgraded to 7.4 format before postmaster will start.
>
>
> "dpkg-reconfigure postgresql" attempts to do just this for me, but fails
> during upgrade.
>
> so I follow the instructions in README.Debian.migration like so:
>
> odin:~# su -s /bin/bash - postgres
> postgres(at)odin:~$ postgresql-dump -t db.out -dcivlp $PGDATA/../data.save
> Stopping and restarting the postmaster
> /var/lib/postgres/dumpall/7.3/postmaster -D /var/lib/postgres/data -p
> 5431 -o -d0
> /var/lib/postgres/dumpall/7.3/postmaster: error while loading shared
> libraries: libcom_err.so.1: cannot open shared object file: No such file
> or directory
> Failed to start the postmaster
> postgres(at)odin:~$
>
> Is any one able to point me the right way from here?

Yes, this is a known problem. Look at
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=225812 and
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=225635

Solution:

If you have an up to date dump, move $PGDATA aside, initdb and load your
dump.

Otherwise:
rm -rf /var/lib/postgres/dumpall/7.3/
reinstall 7.3.4-9 from testing for the packages postgresql,
postgresql-client and libpq3; use dpkg --force-downgrade --force-depends
--force-conflicts to do it - it's only for a few minutes.
Make a dump now
reinstall 7.4.1 - this time the upgrade should work, and if not, you can
do a manual upgrade with your just-taken dump as shown above .

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight, UK http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"If we confess our sins, he is faithful and just to
forgive us our sins, and to cleanse us from all
unrighteousness." I John 1:9

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2004-01-14 15:13:06 Re: SQL_ASCII / LATIN1
Previous Message glenn 2004-01-14 14:47:25 probs with 7.3 -> 7.4 on debian