Re: [HACKERS] [PATCH] Add two-arg for of current_setting(NAME,FALLBACK) - Mailing list pgsql-hackers

From David Christensen
Subject Re: [HACKERS] [PATCH] Add two-arg for of current_setting(NAME,FALLBACK)
Date
Msg-id A68856AF-3332-45E4-B380-084FD54945DB@endpoint.com
Whole thread Raw
In response to Re: [HACKERS] [PATCH] Add two-arg for of current_setting(NAME,FALLBACK)  (Nico Williams <nico@cryptonector.com>)
List pgsql-hackers

On Nov 1, 2017, at 1:02 PM, Nico Williams <nico@cryptonector.com> wrote:

On Thu, Mar 19, 2015 at 05:41:02PM -0500, David Christensen wrote:
The two-arg form of the current_setting() function will allow a
fallback value to be returned instead of throwing an error when an
unknown GUC is provided.  This would come in most useful when using
custom GUCs; e.g.:

There already _is_ a two-argument form of current_setting() that yours
somewhat conflicts with:

  current_setting(setting_name [, missing_ok ])

https://www.postgresql.org/docs/current/static/functions-admin.html

Apologies; I have no idea how this email got re-sent, but it is quite old and a mistake.

David
--
David Christensen
End Point Corporation
david@endpoint.com
785-727-1171



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: [HACKERS] MERGE SQL Statement for PG11
Next
From: Mark Dilger
Date:
Subject: Re: [HACKERS] Add some const decorations to prototypes