Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YsH3f-0006DS-00 for pgsql-committers@arkaria.postgresql.org; Tue, 12 May 2015 20:45:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YsH3e-0007bg-H5 for pgsql-committers@arkaria.postgresql.org; Tue, 12 May 2015 20:45:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YsH3d-0007ba-Vh for pgsql-committers@postgresql.org; Tue, 12 May 2015 20:45:42 +0000 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1YsH3b-0003Uv-JZ for pgsql-committers@postgresql.org; Tue, 12 May 2015 20:45:41 +0000 Received: from mfilter5-d.gandi.net (mfilter5-d.gandi.net [217.70.178.132]) by relay5-d.mail.gandi.net (Postfix) with ESMTP id 421DA41C062; Tue, 12 May 2015 22:45:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter5-d.gandi.net Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by mfilter5-d.gandi.net (mfilter5-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id RC6nk7zhrSBy; Tue, 12 May 2015 22:45:36 +0200 (CEST) X-Originating-IP: 98.27.58.255 Received: from [192.168.10.146] (cpe-98-27-58-255.nc.res.rr.com [98.27.58.255]) (Authenticated sender: adsend@dunslane.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 6B24341C056; Tue, 12 May 2015 22:45:36 +0200 (CEST) Message-ID: <5552666F.20409@dunslane.net> Date: Tue, 12 May 2015 16:45:35 -0400 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Pavel Stehule CC: "pgsql-committers@postgresql.org" Subject: Re: pgsql: Additional functions and operators for jsonb References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 05/12/2015 04:11 PM, Pavel Stehule wrote: > Hi > > I did some tests, and I am not sure if this is not bug: > > postgres=3D# select '{"x":20}'::jsonb - 'x'::text; > ERROR: unknown type of jsonb container --->>> it should be empty=20 > jsonb, not error > Time: 0.971 ms > postgres=3D# select '{"x":20, "y":30}'::jsonb - 'x'::text; > =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=90 > =E2=94=82 ?column? =E2=94=82 > =E2=95=9E=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90= =E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=A1 > =E2=94=82 {"y": 30} =E2=94=82 > =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=98 > (1 row) > > > Regards > > Pavel > Yes. that's a bug. will check. cheers andrew --=20 Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers