Re: AW: PGDG PostgreSQL Debian package: Question on conditions for creation of new cluster

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Schmid Andreas <Andreas(dot)Schmid(at)bd(dot)so(dot)ch>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: AW: PGDG PostgreSQL Debian package: Question on conditions for creation of new cluster
Date: 2025-02-19 16:11:37
Message-ID: 2998a590-e131-4756-91e2-7b071d02652b@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2/19/25 05:22, Schmid Andreas wrote:
>> -----Ursprüngliche Nachricht-----

>
> Well, according to the last comment below the Stack Overflow question, it was about installing 17.3 with a v14 cluster already present.
> Anyways, I now tried on an Ubuntu 24.04 machine as well, and installing 17.3 alone created a cluster.
> Cleaned up the machine, then installed 15.11, which created a cluster. Installed 16.7 alongside, which did not create an additional cluster. So it's probably not a 17.3 problem.
> Same outcome on Ubuntu 20.04.

Which was explained to you in the comments to the SO question. There is
no 'Installed 16.7 alongside ...'. As was explained this is just minor
version upgrade to Postgres 16 and will only upgrade the binaries and
associated libraries for the major version 16.

>
> Maybe there generally is no cluster created if there is one present already. I now checked /usr/share/postgresql-common/maintscripts-functions which is installed by the postgresql-common_273.pgdg24.04+1_all.deb package. This script contains the create_main_cluster() function, which according to a comment "skips if any other cluster already exists".
> So could it be that this function has been updated recently? Can you point me to the repo where this script is maintained?

Do man pg_createcluster.

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Csányi Pál 2025-02-19 16:13:48 Re: ERROR: stack depth limit exceeded
Previous Message Sándor Daku 2025-02-19 16:09:01 Re: ERROR: stack depth limit exceeded