Re: proposal - assign result of query to psql variable

Поиск
Список
Период
Сортировка
От Shigeru Hanada
Тема Re: proposal - assign result of query to psql variable
Дата
Msg-id CAEZqfEdUmCiHOfcwO82Y4iTKvPG0F1Jz_6xitj=N4q8_pNt7Mw@mail.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>)
Re: proposal - assign result of query to psql variable  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
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.

-- 
Shigeru HANADA



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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: GetOldestXmin going backwards is dangerous after all
Следующее
От: Andres Freund
Дата:
Сообщение: Re: autovacuum not prioritising for-wraparound tables