Re: Use environment variables in postgresql.conf

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Use environment variables in postgresql.conf
Date: 2013-12-01 00:06:19
Message-ID: 529A7D7B.4060602@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/30/2013 3:54 PM, imagenesis(at)gmail(dot)com 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Sullivan 2013-12-01 01:06:54 Re: Use environment variables in postgresql.conf
Previous Message John R Pierce 2013-12-01 00:01:15 Re: Full Stored Procedure Support, any time soon ?