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

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Andrew Tipton <andrew(at)kiwidrew(dot)com>, Merlin Moncure <mmoncure(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add json_typeof() and json_is_*() functions.
Date: 2013-10-10 16:24:50
Message-ID: 5256D4D2.2010802@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 08/06/2013 08:42 AM, Robert Haas wrote:
> On Fri, Aug 2, 2013 at 8:22 AM, Andrew Tipton <andrew(at)kiwidrew(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2013-10-10 16:28:42 Re: Auto-tuning work_mem and maintenance_work_mem
Previous Message Dimitri Fontaine 2013-10-10 16:20:56 Re: Compression of full-page-writes