Hi Martin! On Tue, 2005-12-06 at 20:21 +0100, Martin Pitt wrote: > Hi again, > > After purging postgresql-8.1, /etc/postgresql/8.1 and > /var/lib/postgresql/8.1 should be empty.
I found the problem when I purged again in preparation for this: post-remove failed because there was an empty directory /etc/postgresql/8.1/clients.d which I created when trying my "restart depending apps" stuff. After removing that dir, the purge, the reinstall, and start/stop work perfectly. FYI, here is what I got before I removed that dir: Removing postgresql-8.1 ... Stopping PostgreSQL 8.1 database server: mainError: cluster is not running failed! Purging configuration files for postgresql-8.1 ... Dropping cluster clients.d... Error: Invalid symbolic link /etc/postgresql/8.1/clients.d/pgdata dpkg: error processing postgresql-8.1 (--purge): subprocess post-removal script returned error exit status 1 Removing postgresql-client-8.1 ... Errors were encountered while processing: postgresql-8.1 E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: However, something has changed in the meantime, because now start/stop even works after a "mkdir /etc/postgresql/8.1/clients.d". Seems like it does not treat every directory in /etc/postgresql/8.1 as a cluster anymore? Anyway, after all it's resolved. I'll now start planning moving my 7.x databases to 8.1. Overall, I did not see any major problems with 8.1 so far, so future seems bright. Thanks for all the help. Best, Norbert
signature.asc
Description: This is a digitally signed message part