Re: Issue with clusters with '-' in the name

From: Christoph Berg <myon(at)debian(dot)org>
To: David Peall <david(at)dnservices(dot)co(dot)za>
Subject: Re: Issue with clusters with '-' in the name
Date: 2016-04-19 18:53:39
Message-ID: 20160419185339.GD12650@msg.df7cb.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-debian

Re: David Peall 2016-04-19 <E7F3EFD1-82A2-47BB-833D-EFA6BBD66969(at)dnservices(dot)co(dot)za>
> Hi
>
> pc_ctlcluseter doesn’t work with cluster names containing ‘-‘ the latest version of postgres from
> deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main
>
> Steps to reproduce the error:
> pg_createcluster 9.5 test-dash
> pg_ctlcluster 9.5 test-dash start - doesn’t work

Hi,

that's a known issue with the systemd integration:

$ head -4 /lib/systemd/system/postgresql\(at)(dot)service
# systemd service template for PostgreSQL clusters. The actual instances will
# be called "postgresql(at)version-cluster", e.g. "postgresql(at)9(dot)3-main". The
# variable %i expands to "version-cluster", %I expands to "version/cluster".
# (%I breaks for cluster names containing dashes.)

Since postgresql-common 171 (18 Dec 2015) you should get a warning when
creating clusters with dashes in the name.

Could you verify which postgresql-common version you have there?

Christoph

In response to

Responses

Browse pgsql-pkg-debian by date

  From Date Subject
Next Message Sebastiaan Couwenberg 2016-04-19 19:01:01 Re: pgrouting updated to version 2.2.0-1.pgdg+1
Previous Message David Peall 2016-04-19 18:27:39 Issue with clusters with '-' in the name