1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

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.
This commit is contained in:
Andrew Dunstan
2011-12-15 19:40:58 -05:00
parent 1da5c11959
commit 6d09b2105f
3 changed files with 46 additions and 9 deletions

View File

@ -89,6 +89,18 @@ include 'filename'
Inclusions can be nested.
</para>
<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>