Re: Improve documentation for current_setting function

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Improve documentation for current_setting function
Дата
Msg-id 20190222013924.2s77vm2cux3r54y2@momjian.us
обсуждение исходный текст
Ответ на Improve documentation for current_setting function  (PG Doc comments form <noreply@postgresql.org>)
Ответы Re: Improve documentation for current_setting function  (Eugen Konkov <kes-kes@yandex.ru>)
Список pgsql-docs
On Wed, Feb 20, 2019 at 12:59:45PM +0000, PG Doc comments form wrote:
> The following documentation comment has been logged on the website:
> 
> Page: https://www.postgresql.org/docs/11/functions-admin.html
> Description:
> 
> Hi.
> 
> Doc is not clear about what is returned if current_setting(
> 'app.not_existent', true ) is called.
> 
> Does it return empty string '', because return type is 'text' or it return
> NULL, because 'app.not_existent' does not exist

Testing shows:

    SELECT current_setting('asdf', true);
     current_setting
    -----------------
    
    
    \pset null (null)
    
    SELECT current_setting('asdf', true);
     current_setting
    -----------------
-->     (null)

How do you like the attached patch, which clarifies this?

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +

Вложения

В списке pgsql-docs по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Improve examples for range operators
Следующее
От: PG Doc comments form
Дата:
Сообщение: FORMAT keyword not allowed in COPY ... FROM statement