Hello Martin,
On Thu, Jun 29, 2006 at 09:12:21PM +0200, Martin Pitt wrote:
> Helge Kreutzmann [2006-06-16 16:46 +0200]:
> > What I don't understand is why is the log rotation still active, if
> > the package is removed?
> 
> The conffile for log rotation is still present, and both the old and
> the new infrastructure use /var/log/postgresql for log files.

Well, my question was rather why the conffile for log rotation was
still present, but this already answers it (conffile). Though it does
not seem to be terrible sensible to remove a package but leave the log
rotation going. But this is of course OT.

> postgresql-8.1 is completely independent of postgresql-7.4, and I
> would like to completely drop the knowledge (and code) to support the
> old sarge layout at some point.

Well, technically speaking this would be Etch+epsilon, as skipping stable
releases is not supported.

> > c) 8.1 detects the broken logrotate and informs the admin how to fix
> >    it manually (again, via debconf but preferably including either d)
> >    or e) as well)
> 
> This is my favourite option so far. What I would *really* want is a
> Conflicts: field that says 'won't work even with the package's
> conffile still in place'. Since we do not have that, my proposal is to
> add a small check into postgresql-{7.4,8.1}'s preinst which
> immediately fails if the old postgresql package is still present, and
> tell the admin to either purge them first, or install the transitional
> packages. This would avoid code duplication and more evil hacks, while
> informing the admin about the situation rather than silently breaking.

Well, as long as you check if it is present *or* in RC state, i.e.
some files might be laying around, then I agree with this solution.
Even if in some absourd scenario I would have to do it on many
machines it is even a rather dump management frontend would support
such a sequence on all machines.

Do I understand correctly. To properly fix this, I simply issue
apt-get install postgresql
apt-get --purge remove postgresql

> Would that be ok for you?

Yes, if *RC* is considered.

Greetings

          Helge

-- 
      Dr. Helge Kreutzmann                     [EMAIL PROTECTED]
           Dipl.-Phys.                   http://www.helgefjell.de/debian.php
        64bit GNU powered                     gpg signed mail preferred
           Help keep free software "libre": http://www.ffii.de/

Attachment: signature.asc
Description: Digital signature

Reply via email to