BUG #12630: Postgres APT script issues - Mailing list pgsql-bugs

From r.andom.dev4+postgres@gmail.com
Subject BUG #12630: Postgres APT script issues
Date
Msg-id 20150122114416.32672.26447@wrigleys.postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      12630
Logged by:          Tom
Email address:      r.andom.dev4+postgres@gmail.com
PostgreSQL version: 9.4.0
Operating system:   Ubuntu 14.04.1 LTS
Description:

Using the postgres repo (http://apt.postgresql.org/pub/repos/apt/).

After 9.4 pg_upgrade, you are prompted to run ./delete_old_cluster.sh.

However, doing so breaks the postgres apt scripts.  For example, running
'sudo apt-get remove postgresql-9.3 postgresql-9.3-ip4r
postgresql-client-9.3 postgresql-contrib-9.3' yields an erroneous error that
prevents uninstallation :

* Stopping PostgreSQL 9.3 database server
 * Error: /var/lib/postgresql/9.3/main is not accessible or does not exist
   ...fail!
invoke-rc.d: initscript postgresql, action "stop" failed.
dpkg: error processing package postgresql-9.3 (--remove):
 subprocess installed pre-removal script returned error exit status 1
Errors were encountered while processing:
 postgresql-9.3
E: Sub-process /usr/bin/dpkg returned an error code (1)


Similarly the init script breaks too :
 * Restarting PostgreSQL 9.3 database server
 * Error: /var/lib/postgresql/9.3/main is not accessible or does not exist
   ...fail!

pgsql-bugs by date:

Previous
From: yuanchongwei007@163.com
Date:
Subject: BUG #12625: operation 'union' confirms the type of the column with 2 unknown types.
Next
From: davi vidal
Date:
Subject: Re: BUG #12617: DETAIL: Could not read from file "pg_subtrans/06F8" at offset 90112: Success.