pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: yunlong.gao <yunlong.gao@qunar.com>
To: pgsql-bugs@lists.postgresql.org
Subject: Re: May be a jsonb type bug
Date: Mon, 25 Dec 2017 10:34:48 +0800
Message-ID: <e7c6da01-0b39-9030-2ae6-7e7cf053d5bb@qunar.com> (raw)
In-Reply-To: <129801513947874@web13g.yandex.ru>
References: <ae4325cd-4e99-b9d0-34f7-55ebe8f1a028@qunar.com>
	<129801513947874@web13g.yandex.ru>

Thank you very much


在 2017年12月22日 21:04, Sergei Kornilov 写道:
> Hi
> 'null' - is valid JSON document, but not array or object. It is just JSON-null in JSON. (not NULL in terms RDBMS)
> Same as '"test"' - is valid JSON-encoded string 'test', '10' - valid JSON int scalar.
>
> jsonb_array_length accept only JSON array documents: '[1,2,3]', '[null, null]', '[]', '[{"n":1}]' and so on and not accept scalars and objects
>
> Regards, Sergej

-- 
*PostgreSQL DBA yunlong.gao *

pg开发指南 http://wiki.corp.qunar.com/pages/viewpage.action?pageId=58058230
pg发布流程 http://wiki.corp.qunar.com/pages/viewpage.action?pageId=56215301
pg值班列表 http://wiki.corp.qunar.com/pages/viewpage.action?pageId=50508626
pg机器列表 http://wiki.corp.qunar.com/pages/viewpage.action?pageId=36438672
pgbouncer http://wiki.corp.qunar.com/display/searchdev/pgbouncer+server

view thread (3+ messages)

Message-ID: <e7c6da01-0b39-9030-2ae6-7e7cf053d5bb@qunar.com>
Permalink:  ../e7c6da01-0b39-9030-2ae6-7e7cf053d5bb@qunar.com/
Also on:    postgresql.org/message-id/e7c6da01-0b39-9030-2ae6-7e7cf053d5bb@qunar.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: yunlong.gao@qunar.com
  Subject: Re: May be a jsonb type bug
  In-Reply-To: <e7c6da01-0b39-9030-2ae6-7e7cf053d5bb@qunar.com>
  References: <ae4325cd-4e99-b9d0-34f7-55ebe8f1a028@qunar.com> <129801513947874@web13g.yandex.ru> <e7c6da01-0b39-9030-2ae6-7e7cf053d5bb@qunar.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox