Thread: include directives in postgresql.conf

include directives in postgresql.conf

From
AI Rumman
Date:
Can anyone please tell me that how to use 'include directives' in
Postgresql.conf?
http://www.postgresql.org/docs/8.4/interactive/config-setting.html

Re: include directives in postgresql.conf

From
Thom Brown
Date:
On 2 July 2011 10:42, AI Rumman <rummandba@gmail.com> wrote:
> Can anyone please tell me that how to use 'include directives' in
> Postgresql.conf?
> http://www.postgresql.org/docs/8.4/interactive/config-setting.html

Well it's quite clear from the documentation.  It's just:

include 'filename'

So if you have a config file in the same directory as postgresql.conf,
and you specify that it be included, it will be.  If it's not in the
same directory, give an absolute path.  Note that if a setting in the
include file is later specified in postgresql.conf after the include
directive, it will override the setting in the include.

But one example scenario you might wish to use is to leave
postgresql.conf as it is, put an include directive on the bottom line
to include another config file, and just use that to override settings
in postgresql.conf.  Another is that you may wish to keep contrib
module configuration in their own files, so you can add include
directives for each of those.

--
Thom Brown
Twitter: @darkixion
IRC (freenode): dark_ixion
Registered Linux user: #516935

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company