Re: Question on postgresql.conf

Поиск
Список
Период
Сортировка
От Matt Zagrabelny
Тема Re: Question on postgresql.conf
Дата
Msg-id CAOLfK3WSPAG4CA+nut5jHQ+27mrSaOvG3mzt6FuNFB+aBWjLtQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Question on postgresql.conf  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Question on postgresql.conf
Список pgsql-general


On Tue, Jul 31, 2018 at 9:21 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
"Lu, Dan" <Dan.Lu@sig.com> writes:
> Question:
> Can <hostname> be a variable like `hostname` derived from Unix shell or I have to hardcode the name of the host like " include /nfs/global/postgres-host123.cnf

Nope, you'd have to hard-code it.

Of course, you could have the startup script that you intended to set the
env variable just overwrite $PGDATA/postgresql.conf with the right thing.

Or have puppet/chef/ansible/etc. write the correct config file based on your dynamic data.

-m 

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Question on postgresql.conf
Следующее
От: Melvin Davidson
Дата:
Сообщение: Re: Restore relhaspkey in PostgreSQL Version 11 Beta