diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-07-02 16:40:55 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-07-02 16:41:07 -0400 |
commit | 10fb48d66de76e7dc1e36ef18af502ed9600352f (patch) | |
tree | dbe8d354065a8342d8e4f34aa976a62ef785d815 /src/include/utils/builtins.h | |
parent | 726117243022178e72966cbffdfb9147ec6dbbcc (diff) | |
download | postgresql-10fb48d66de76e7dc1e36ef18af502ed9600352f.tar.gz postgresql-10fb48d66de76e7dc1e36ef18af502ed9600352f.zip |
Add an optional missing_ok argument to SQL function current_setting().
This allows convenient checking for existence of a GUC from SQL, which is
particularly useful when dealing with custom variables.
David Christensen, reviewed by Jeevan Chalke
Diffstat (limited to 'src/include/utils/builtins.h')
-rw-r--r-- | src/include/utils/builtins.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index 98556725c8e..fcb0bf0ce8e 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -1114,6 +1114,7 @@ extern Datum quote_nullable(PG_FUNCTION_ARGS); /* guc.c */ extern Datum show_config_by_name(PG_FUNCTION_ARGS); +extern Datum show_config_by_name_missing_ok(PG_FUNCTION_ARGS); extern Datum set_config_by_name(PG_FUNCTION_ARGS); extern Datum show_all_settings(PG_FUNCTION_ARGS); extern Datum show_all_file_settings(PG_FUNCTION_ARGS); |