| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Add an optional missing_ok argument to SQL function current_sett |
| Date: | 2015-07-02 20:41:16 |
| Message-ID: | E1ZAlIK-0002UF-6L@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/10fb48d66de76e7dc1e36ef18af502ed9600352f
Modified Files
--------------
contrib/tsearch2/tsearch2.c | 2 +-
doc/src/sgml/func.sgml | 7 ++++-
src/backend/utils/misc/guc.c | 53 +++++++++++++++++++++++++++++--------
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.h | 6 +++--
src/include/utils/builtins.h | 1 +
src/include/utils/guc.h | 3 ++-
src/test/regress/expected/guc.out | 31 ++++++++++++++++++++++
src/test/regress/sql/guc.sql | 13 +++++++++
9 files changed, 101 insertions(+), 17 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2015-07-02 21:02:21 | pgsql: Fix misuse of TextDatumGetCString(). |
| Previous Message | Heikki Linnakangas | 2015-07-02 18:22:20 | pgsql: Remove obsolete heap_formtuple/modifytuple/deformtuple functions |