Hi Helge! Helge Kreutzmann [2005-02-14 18:26 +0100]: > Well, as I understood, debconf asked me as if I installed a *new* > postgresql. So I was a little disturbed, because I have data in my > database which I did not intend to loose.
But the template specifically warns you that a symlink structure is not preserved during _upgrades_, so I do think that it belongs there. > Then I said to myself: Ok, this is a standard text shown always, I > don't have to take it too literal. But the next question put all > alarming signs on: > > Should the data be purged as well as the package files? Well, that is only half the truth; it says "A request to purge...", and "When a purge is requested...", not "I will do that now". Actually this template was intended as a safeguard: normally a package purge is supposed to wipe _everything_. But since a database is somewhat precious, a package purge will not remove /var/lib/postgres/data by default. For the new package I consider to not ask this question, but just wipe away everything. If users really purge the package and then complain that they lost their db, they got what they asked for. > Great! I don't know if trimming the templates helps, but when > upgrading no questions regarding purging should be stated, because > thats quite the opposite to upgrading. The problem is that questions can be asked only at install, not at purge time. But if you purge the db 3 years after installing it, you will have probably forgotten your answer anyway, so it really does not make much sense as it is now. > Maybe I get the machine to boot in its present state once more (but > first I'll have to save my data) and can have a final look; don't know > yet. > > Thanks for taking care of postgresql, I guess updating (with changing > data formats and such) is quite a challenge. It's nearly impossible to make it foolproof during package upgrade, so db and package upgrade will be separated in the future: http://people.debian.org/~mpitt/postgresql-ng.html Martin -- Martin Pitt http://www.piware.de Ubuntu Developer http://www.ubuntulinux.org Debian GNU/Linux Developer http://www.debian.org
signature.asc
Description: Digital signature