Re: Add json_typeof() and json_is_*() functions.

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Add json_typeof() and json_is_*() functions.
Дата
Msg-id 5256D4D2.2010802@dunslane.net
обсуждение исходный текст
Ответ на Re: Add json_typeof() and json_is_*() functions.  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 08/06/2013 08:42 AM, Robert Haas wrote:
> On Fri, Aug 2, 2013 at 8:22 AM, Andrew Tipton <andrew@kiwidrew.com> wrote:
>> But without json_is_scalar(), the choice is one of these two forms:
>>    json_typeof() NOT IN ('object', 'array')
>>    json_typeof() IN ('string', 'number', 'boolean', 'null')
> The first of those is what seemed to make sense to me.  The user can
> always define their own convenience function if they so desire.  I
> don't think we need to bloat the default contents of pg_proc for that.
>


I agree. I have committed a version with just the one function.

cheers

andrew



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

Предыдущее
От: Dimitri Fontaine
Дата:
Сообщение: Re: Compression of full-page-writes
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Auto-tuning work_mem and maintenance_work_mem