pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: pgsql-committers@postgresql.org <pgsql-committers@postgresql.org>
Subject: Re: pgsql: Additional functions and operators for jsonb
Date: Tue, 12 May 2015 16:45:35 -0400
Message-ID: <5552666F.20409@dunslane.net> (raw)
In-Reply-To: <CAFj8pRDX5KTc8C8yENzF1Z8APS=3sM3Z4T0gV1o+C8cbbxu3qw@mail.gmail.com>
References: <E1YsGHP-0006De-1z@gemulon.postgresql.org>
	<CAFj8pRDX5KTc8C8yENzF1Z8APS=3sM3Z4T0gV1o+C8cbbxu3qw@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>


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=# select '{"x":20}'::jsonb - 'x'::text;
> ERROR:  unknown type of jsonb container --->>> it should be empty 
> jsonb, not error
> Time: 0.971 ms
> postgres=# select '{"x":20, "y":30}'::jsonb - 'x'::text;
> ┌───────────┐
> │ ?column?  │
> ╞═══════════╡
> │ {"y": 30} │
> └───────────┘
> (1 row)
>
>
> Regards
>
> Pavel
>

Yes. that's a bug.

will check.

cheers

andrew


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (10+ messages)  latest in thread

Message-ID: <5552666F.20409@dunslane.net>
Permalink:  ../5552666F.20409@dunslane.net/
Also on:    postgresql.org/message-id/5552666F.20409@dunslane.net

 · 

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-committers@postgresql.org
  Cc: andrew@dunslane.net, pavel.stehule@gmail.com
  Subject: Re: pgsql: Additional functions and operators for jsonb
  In-Reply-To: <5552666F.20409@dunslane.net>
  References: <E1YsGHP-0006De-1z@gemulon.postgresql.org> <CAFj8pRDX5KTc8C8yENzF1Z8APS=3sM3Z4T0gV1o+C8cbbxu3qw@mail.gmail.com> <5552666F.20409@dunslane.net>

* 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