[BUGS] BUG #14566: Overriding PGDATA during initdb always fails

Поиск
Список
Период
Сортировка
От henti@geekware.co.za
Тема [BUGS] BUG #14566: Overriding PGDATA during initdb always fails
Дата
Msg-id 20170224103814.1528.57512@wrigleys.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] BUG #14565: query planner does not use partial index in partiton if query is performed on multiple partitions
Следующее
От: henti@geekware.co.za
Дата:
Сообщение: [BUGS] BUG #14567: Overriding PGDATA during initdb always fails