Re: PostgreSQL upgrade from slink - proposed solution
On Sun, May 21, 2000 at 07:26:53AM +0100 , Oliver Elphick wrote:
> Summary of the problem: postgresql needs to use the binaries of the previous
> release to make a dump of the database, if the old database version is built
> by an earlier release. However, those binaries are no longer available
> by the time postgresql knows they are needed, because apt is likely to
> delete the old package before installing the new one. 6.5.3-18 and later
> handle this by saving the binaries in their prerm. However slink does not
-19 preinst could handle that. When preinst is run, the old binaries are still
there, sou you can save them to /usr/lib/postgresql/??/6.3 .
> have this feature, and it is too late to introduce it. This is likely
> to lead to upgrade problems from slink to potato.
yes, but upgrading a database is usually done by someone who understands it
> Proposed solution: postgresql must depend on a package that contains only
> the old binaries. These will have to be collected for each architecture
> and the package will contain uuencoded versions. This package will
eww
> be called postgresql-slink. In view of library changes from slink to
> potato, I will probably have to build this on a potato system from 6.3.2
> source; alternatively, it will have dependencies on the slink library
> versions (is that feasible?).
yes, but you still have problems. that there will be installed newer glibc and
libpgsql2, no?
> The postinst of postgresql will look for binaries presaved by the old
> package. If it does not find them, it will look for a uuencoded version
> from postgresql-slink. If it doesn't find those, it will try to use ones
postgres should be static then, it depends on quite a few libraries
> copied by the preinst.
>
> This expedient will be used only for slink to potato upgrading.
> postgresql 6.5.3-19 will depend on postgresql-slink. postgresql 7.0-final-1
> and later will not.
>
> Comments please.
save in preinst of postgresql, libpgsql2
Petr Cech
--
Debian GNU/Linux maintainer - www.debian.{org,cz}
cech@atrey.karlin.mff.cuni.cz
<sgore> We Are Debian. You Will Be Packaged. Media Opinion Is Irrelevant.
Reply to: