aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2011-12-15 19:40:58 -0500
committerAndrew Dunstan <andrew@dunslane.net>2011-12-15 19:40:58 -0500
commit6d09b2105fb5fa6e6245e7b024bfbe465b1041ee (patch)
tree175de225cd8be5187803aae51e92fc1f607052e9 /doc/src
parent1da5c119594e4fb07fb6a2c57f66642fa5e966fb (diff)
downloadpostgresql-6d09b2105fb5fa6e6245e7b024bfbe465b1041ee.tar.gz
postgresql-6d09b2105fb5fa6e6245e7b024bfbe465b1041ee.zip
include_if_exists facility for config file.
This works the same as include, except that an error is not thrown if the file is missing. Instead the fact that it's missing is logged. Greg Smith, reviewed by Euler Taveira de Oliveira.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/config.sgml12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml
index d1e628fefca..0cc329691dd 100644
--- a/doc/src/sgml/config.sgml
+++ b/doc/src/sgml/config.sgml
@@ -91,6 +91,18 @@ include 'filename'
<para>
<indexterm>
+ <primary><literal>include_if_exists</></primary>
+ <secondary>in configuration file</secondary>
+ </indexterm>
+ Use the same approach as the <literal>include</> directive, continuing
+ normally if the file does not exist. A regular <literal>include</>
+ will stop with an error if the referenced file is missing, while
+ <literal>include_if_exists</> does not. A warning about the missing
+ file will be logged.
+ </para>
+
+ <para>
+ <indexterm>
<primary>SIGHUP</primary>
</indexterm>
The configuration file is reread whenever the main server process receives a