[BUGS] BUG #14566: Overriding PGDATA during initdb always fails - Mailing list pgsql-bugs

From henti@geekware.co.za
Subject [BUGS] BUG #14566: Overriding PGDATA during initdb always fails
Date
Msg-id 20170224103814.1528.57512@wrigleys.postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      14566
Logged by:          Henti Smith
Email address:      henti@geekware.co.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 : 



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

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: [BUGS] BUG #14565: query planner does not use partial index in partiton if query is performed on multiple partitions
Next
From: henti@geekware.co.za
Date:
Subject: [BUGS] BUG #14567: Overriding PGDATA during initdb always fails