Thread: BUG #9189: error reading postgresql.conf in pg_createcluster

BUG #9189: error reading postgresql.conf in pg_createcluster

From
krichter722@aol.de
Date:
The following bug has been logged on the website:

Bug reference:      9189
Logged by:          Karl Richter
Email address:      krichter722@aol.de
PostgreSQL version: 9.3.2
Operating system:   Ubuntu 13.10 on Linux 3.11 on x86_64
Description:

The invokation of
<code>sudo pg_createcluster 9.3 default1</code> creates the output
<code>
Creating new cluster 9.3/default1 ...
  config /etc/postgresql/9.3/default1
  data   /var/lib/postgresql/9.3/default1
  locale de_DE.UTF-8
Error: could not open /etc/postgresql/9.3/default1/postgresql.conf for
reading at /usr/share/postgresql-common/PgCommon.pm line 185.
</code> Why is pg_createcluster having trouble reading file that are created
by itself (according to manpage)?

Re: BUG #9189: error reading postgresql.conf in pg_createcluster

From
Peter Eisentraut
Date:
On 2/11/14, 3:39 PM, krichter722@aol.de wrote:
> The invokation of
> <code>sudo pg_createcluster 9.3 default1</code> creates the output
> <code>
> Creating new cluster 9.3/default1 ...
>   config /etc/postgresql/9.3/default1
>   data   /var/lib/postgresql/9.3/default1
>   locale de_DE.UTF-8
> Error: could not open /etc/postgresql/9.3/default1/postgresql.conf for
> reading at /usr/share/postgresql-common/PgCommon.pm line 185.
> </code> Why is pg_createcluster having trouble reading file that are created
> by itself (according to manpage)?

You should file an Ubuntu bug about this.  This tool is not shipped by
PostgreSQL proper.