pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: bouellette@mixpo.com
To: pgsql-bugs@postgresql.org
Cc: bouellette@mixpo.com
Subject: BUG #14875: pg_createcluster fails to load --createclusterconf
Date: Thu, 26 Oct 2017 17:45:09 +0000
Message-ID: <20171026174509.1488.15781@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      14875
Logged by:          Bradley Ouellette
Email address:      bouellette@mixpo.com
PostgreSQL version: 9.4.14
Operating system:   Ubuntu 14.04.5 LTS
Description:        

Unfortunately pg_createcluster doesn't have a version option to reference.

This works in the version installed in 174.pgdg14.04+1 but fails in version
186.pgdg14.04+1

Running: 
pg_createcluster --createclusterconf=setup/restore-cluster.conf 9.4
restore4
Creates a new instance that has a default 
/etc/postgresql/9.4/restore4/postgresql.conf which lacks the options
specified in the restore-cluster.conf  config file. It also lacks any
customizations in /etc/postgresql-common/createcluster.conf (tested by just
replacing the default /etc/postgresql-common/createcluster.conf file with
the custom version we are using.

Running 
pg_createcluster 9.4 restore4 correctly updates the default values as
specified in /etc/postgresql-common/createcluster.conf

We like using the alternate config location since it allows us to keep that
file inside out source code repo. 

The pg_createcluster works correctly if I copy the older version of that
utility from 


Further Investigation:
The new Version on Line 29 has: chdir '/';
The createclusterconf option works if I specify a full path to the file.  If
the utility needs a full path, The documentation should note that.

Also if it doesn't find the alternate file I would expect it to fall back on
the default(or fail gracefully), and print a warning that the file isn't
found.



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


view thread (2+ messages)  latest in thread

Message-ID: <20171026174509.1488.15781@wrigleys.postgresql.org>
Permalink:  ../20171026174509.1488.15781@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20171026174509.1488.15781@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: bouellette@mixpo.com
  Subject: Re: BUG #14875: pg_createcluster fails to load --createclusterconf
  In-Reply-To: <20171026174509.1488.15781@wrigleys.postgresql.org>
  References: <20171026174509.1488.15781@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox