how to best remove version 10 (and keep version 9.5)

Started by robert rottermannabout 5 years ago3 messagesgeneral
Jump to latest
#1robert rottermann
robert@redcor.ch

Hi folks

I am running an Ubuntu 18.04 lts remote box.

For some (complicated) reasons I did install PostgreSQL 9.5 alongside the
already installed V10 instance.

I did set the data_directory to point some disk  “outside” the standard
/etc/postgresql/9.5/main structure.

Now, what I would like to do is to get rid of one of the two installed
PostgreSQL versions.

Also there are aliasings like:     /usr/bin/pg_dump ->
../share/postgresql-common/pg_wrapper*

I would like to avoid them if possible.

Things are running now with version 9.5 so I tend to prefer to keep it.

The whole setup is kind of temporary and will be migrated to the “real thing"
during this year. So it is not a problem that the PostgreSQL version is dated.

I would be grateful for your help

robert

#2Adrian Klaver
adrian.klaver@aklaver.com
In reply to: robert rottermann (#1)
Re: how to best remove version 10 (and keep version 9.5)

On 3/13/21 11:00 AM, robert rottermann wrote:

Hi folks

I am running an Ubuntu 18.04 lts remote box.

For some (complicated) reasons I did install PostgreSQL 9.5 alongside
the already installed V10 instance.

I did set the data_directory to point some disk  “outside” the standard
/etc/postgresql/9.5/main structure.

Now, what I would like to do is to get rid of one of the two installed
PostgreSQL versions.

Also there are aliasings like:     /usr/bin/pg_dump ->
../share/postgresql-common/pg_wrapper*

I would like to avoid them if possible.

You are using the Debian/Ubuntu packaging and the above is part of that.
Also they are very helpful so you don't want to get rid of them.

Things are running now with version 9.5 so I tend to prefer to keep it.

From your previous post:

root@elfero:~# pg_lsclusters
Ver Cluster Port Status Owner Data directory
Log file
9.5 main 5432 online postgres
/mnt/HC_Volume_8755337/postgresql/9.5/main
/var/log/postgresql/postgresql-9.5-main.log
10 main 5433 down postgres /var/lib/postgresql/10/main
/var/log/postgresql/postgresql-10-main.log

So, the 10 instance is not running and the 9.5 instance is listening on
the default port. At this point I would leave things as they are.

The whole setup is kind of temporary and will be migrated to the “real
thing" during this year. So it is not a problem that the PostgreSQL
version is dated.

I would be grateful for your help

robert

--
Adrian Klaver
adrian.klaver@aklaver.com

#3Michael Paquier
michael@paquier.xyz
In reply to: Adrian Klaver (#2)
Re: how to best remove version 10 (and keep version 9.5)

On Sat, Mar 13, 2021 at 12:03:04PM -0800, Adrian Klaver wrote:

So, the 10 instance is not running and the 9.5 instance is listening on the
default port. At this point I would leave things as they are.

Robert, you may want to know that 9.5 has been EOL'd by community.
Just saying.
--
Michael