pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add an optional missing_ok argument to SQL function current_sett
Date: Thu, 02 Jul 2015 20:41:16 +0000
Message-ID: <E1ZAlIK-0002UF-6L@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1ZAlIK-0002UF-6L@gemulon.postgresql.org>
Permalink:  ../E1ZAlIK-0002UF-6L@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ZAlIK-0002UF-6L@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Add an optional missing_ok argument to SQL function current_sett
  In-Reply-To: <E1ZAlIK-0002UF-6L@gemulon.postgresql.org>
  References: <E1ZAlIK-0002UF-6L@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox