| From: | David Christensen <david(at)endpoint(dot)com> |
|---|---|
| To: | Nico Williams <nico(at)cryptonector(dot)com> |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: [PATCH] Add two-arg for of current_setting(NAME, FALLBACK) |
| Date: | 2017-11-01 18:27:06 |
| Message-ID: | A68856AF-3332-45E4-B380-084FD54945DB@endpoint.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
> On Nov 1, 2017, at 1:02 PM, Nico Williams <nico(at)cryptonector(dot)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(at)endpoint(dot)com
785-727-1171
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Mark Dilger | 2017-11-01 18:27:28 | Re: Add some const decorations to prototypes |
| Previous Message | Peter Geoghegan | 2017-11-01 18:20:32 | Re: MERGE SQL Statement for PG11 |