Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177555 - Postgresql/libpg upgrade from 8.1.8 to libpg-8.2.4 and postgresql-8.2.4-r1 impossible
Summary: Postgresql/libpg upgrade from 8.1.8 to libpg-8.2.4 and postgresql-8.2.4-r1 im...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 183764
  Show dependency tree
 
Reported: 2007-05-07 21:02 UTC by Guido Flohr
Modified: 2008-06-07 20:33 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guido Flohr 2007-05-07 21:02:05 UTC
The build of postgresql-8.2.4-r1 stops with a message saying that it cannot upgrade the existing database schemes from 8.1.8, and recommends using pg_dump to dump the old data first.  But pg_dump doesn't work any longer, because the dependency libpq has already been updated to 8.2.4.  It fails with:

pg_dump: error while loading shared libraries: libpq.so.4: cannot open shared object file: No such file or directory

Only fix for the user after the unsuccessful upgrade: Reemerge 8.1.8, dump the data with pg_dumpall, and then upgrade.

Reproducible: Always

Steps to Reproduce:
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-05-11 07:09:24 UTC
pgsql-bugs: please duplicate the upgrade-safety-check in the postgresql ebuild to ALSO exist in libpq, to help avoid this problem.
Comment 2 Michael Krelin 2007-06-16 11:32:26 UTC
Duplicate check makes sense for now, but generally, with new ebuilds it's unnecessary since all components from other slots can coexist peacefully. In this case, for example, I'd suggest first upgrading to slotted version of 8.1* and then to 8.2*
Comment 3 Tiziano Müller (RETIRED) gentoo-dev 2008-06-07 20:33:04 UTC
Solved with dev-db/postgresql-{base,server}