Thanks! This has already been fixed in version 111, which is in maverick and natty:
postgresql-common (111) unstable; urgency=high
* Urgency high since this fixes two RC bugs.
* t/030_errors.t: Check that pg_createcluster leaves the original one intact
if the cluster already exists, also when the original one is not running.
This reproduces #597097.
* pg_createcluster: Be more careful with cleaning up the created cluster if
an error occurs: Do not start the cleanup until we actually passed our
sanity checks and created files for the new cluster. Before, it would
erroneously remove an already existing cluster on a sanity check fail, if
that cluster happened to not be running at the time. (Closes: #597097)
* debian/supported-versions: Be more robust against lsb_release failing, e.
g. in the case where it is not fully configured yet. (Closes: #597561)
* debian/supported-versions: Drop check for /etc/debian_version if
lsb_release is not working/existing. Derivatives have debian_version as
well, and we don't actually evaluate it, so just print a meaningful error
message and go with the default versions.
* debian/rules: Put init script priority back to S19/K21 to match the
previous postgresql-8.4 init script. Fix the priorities on upgrade in
debian/postgresql-common.preinst. (Closes: #597654)
Thanks! This has already been fixed in version 111, which is in maverick and natty:
postgresql-common (111) unstable; urgency=high
* Urgency high since this fixes two RC bugs. supported- versions: Be more robust against lsb_release failing, e. supported- versions: Drop check for /etc/debian_version if postgresql- common. preinst. (Closes: #597654)
* t/030_errors.t: Check that pg_createcluster leaves the original one intact
if the cluster already exists, also when the original one is not running.
This reproduces #597097.
* pg_createcluster: Be more careful with cleaning up the created cluster if
an error occurs: Do not start the cleanup until we actually passed our
sanity checks and created files for the new cluster. Before, it would
erroneously remove an already existing cluster on a sanity check fail, if
that cluster happened to not be running at the time. (Closes: #597097)
* debian/
g. in the case where it is not fully configured yet. (Closes: #597561)
* debian/
lsb_release is not working/existing. Derivatives have debian_version as
well, and we don't actually evaluate it, so just print a meaningful error
message and go with the default versions.
* debian/rules: Put init script priority back to S19/K21 to match the
previous postgresql-8.4 init script. Fix the priorities on upgrade in
debian/
-- Martin Pitt <email address hidden> Wed, 22 Sep 2010 12:04:00 +0200
For lucid I propose to SRU the patch; it contains a test case and is pretty straightforward:
http:// bazaar. launchpad. net/~pitti/ postgresql/ common/ revision/ 1024