[Pkg-postgresql-public] Bug#714725: Bug#714725: Consider setting APT::NeverAutoRemove::"postgresql-*" in apt.conf

Christoph Berg myon at debian.org
Tue Jul 9 08:07:50 UTC 2013


Re: Peter Eisentraut 2013-07-03 <1372818582.22689.6.camel at vanquo.pezone.net>
> Marking only the stable version doesn't sound very reliable.  If you
> want to guard the data, you have to do it independent of what the
> preferred version is.  Users of apt.postgresql.org will have even more
> complex requirements.

Nod.

I was thinking about putting something like ^postgresql-.*$VERSION in
the config file when a $VERSION cluster is created, and removing that
once the last $VERSION cluster is removed. That would always keep the
local databases running, and would also enable cleanup once they got
upgraded.

The place to put this would be postgresql-$VERSION.postinst,
pg_createcluster, and/or the init script for creation, and
pg_dropcluster and/or the initscript for removal. (Maybe another call
in *.postinst.)

Too much magic, too complicated? Or the right way to go?

Christoph
-- 
cb at df7cb.de | http://www.df7cb.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-postgresql-public/attachments/20130709/21ffd847/attachment.sig>


More information about the Pkg-postgresql-public mailing list