From: | henti(at)geekware(dot)co(dot)za |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | BUG #14566: Overriding PGDATA during initdb always fails |
Date: | 2017-02-24 10:38:14 |
Message-ID: | 20170224103814.1528.57512@wrigleys.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The following bug has been logged on the website:
Bug reference: 14566
Logged by: Henti Smith
Email address: henti(at)geekware(dot)co(dot)za
PostgreSQL version: 9.6.2
Operating system: Centos 7
Description:
When using the "/usr/pgsql-9.6/bin/postgresql96-setup" script to initdb the
environment variable PGSETUP_INITDB_OPTIONS can be used to pass options to
the initdb binary.
This allows you to do the following.
export PGSETUP_INITDB_OPTIONS="--pgdata=/postgresql"
/usr/pgsql-9.6/bin/postgresql96-setup initdb
Internally, the following happens.
$PGDATA is retrieved from systemctl using Environment.
$PGDATA is then used in initdb() to :
From | Date | Subject | |
---|---|---|---|
Next Message | henti | 2017-02-24 10:50:22 | BUG #14567: Overriding PGDATA during initdb always fails |
Previous Message | Tom Lane | 2017-02-24 05:41:19 | Re: BUG #14565: query planner does not use partial index in partiton if query is performed on multiple partitions |