Re: proposal - assign result of query to psql variable

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: proposal - assign result of query to psql variable
Дата
Msg-id 19302.1359826709@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: proposal - assign result of query to psql variable  (Shigeru Hanada <shigeru.hanada@gmail.com>)
Ответы Re: proposal - assign result of query to psql variable  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: proposal - assign result of query to psql variable  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
Shigeru Hanada <shigeru.hanada@gmail.com> writes:
> On Sat, Feb 2, 2013 at 7:30 PM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
>> possible variants
>> 
>> a) don't store NULL  values - and remove existing variable when NULL
>> be assigned - it is probably best, but should be confusing for users
>> b) implement flag IS NULL - for variables
>> c) use nullPrint
>> d) use empty String

> +1 for a).  If users want to determine whether the result was NULL, or
> want to use substitute string for NULL result, they can use coalesce
> in SELECT clause.  Anyway the feature should be documented clearly.

Yeah, I was considering that one too.  Let's do it that way.
        regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: COPY FREEZE has no warning
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: COPY FREEZE has no warning