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

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Andrew Tipton <andrew(at)kiwidrew(dot)com>
Cc: Merlin Moncure <mmoncure(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add json_typeof() and json_is_*() functions.
Date: 2013-08-06 12:42:30
Message-ID: CA+TgmoZh+Um1nzMKrqPHQXMtMryVMeurhZsehoR+n5Gvw0DSpA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2013-08-06 12:59:25 Re: how to pass data (tuples) to worker processes?
Previous Message Cédric Villemain 2013-08-06 12:36:22 Re: Disabling ALTER SYSTEM SET WAS: Re: ALTER SYSTEM SET command to change postgresql.conf parameters