Search Postgresql Archives

Re: Use environment variables in postgresql.conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/30/2013 3:54 PM, imagenesis@xxxxxxxxx wrote:
Is it possible to use environment variables in postgresql.conf and perhaps related configuration files?

For example, I would like to use an env variable to specify the data directory.

that specific case is generally handled not via postgresql.conf, but rather by the arguments passed pg_ctl in the service start/stop/restart/reload scripts. on my RHEL platforms, its in turn read from /etc/sysconfig/pgsql/$0 (where $0 is the service script name), which in fact sets environment variables used by said service script.




--
john r pierce                                      37N 122W
somewhere on the middle of the left coast



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




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux