On Fri, Aug 2, 2013 at 8:22 AM, Andrew Tipton <and...@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. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers