From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G Johnston <david.g.johnston@gmail.com>
Cc: pgsql-bugs@postgresql.org
Cc: cpronovost@innvue.com
Subject: Re: Re: BUG #11178: JSONB : The NOT operator applies to the <@ operator, even after casting to ::bool
Date: Fri, 15 Aug 2014 23:52:30 -0400
Message-ID: <31620.1408161150@sss.pgh.pa.us> (raw)
In-Reply-To: <1408147143170-5815058.post@n5.nabble.com>
References: <20140815211138.2543.16364@wrigleys.postgresql.org>
<1408147143170-5815058.post@n5.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
David G Johnston <david.g.johnston@gmail.com> writes:
> cpronovost wrote
>> When using the <@ operator in conjunction with the NOT operator on a jsonb
>> column, the NOT reverse the <@ operator(becomes a @>).
> The presence of "NOT" does not (aside from a possible bug) change the "<@"
> operator into the "@>" operator. "NOT" simply inverts the supplied boolean
> value so that "not(true) := false" and vice-versa.
That's what it's *supposed* to do, but somebody got the pg_operator entry
wrong. It looks to me like pg_operator OIDs 3246 and 3250 should be
listed as each others' commutators, not each others' negators.
Sigh. So much for no initdb for 9.4beta3. I wonder whether there are
other thinkos in the jsonb operator entries...
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, cpronovost@innvue.com
Subject: Re: BUG #11178: JSONB : The NOT operator applies to the <@ operator, even after casting to ::bool
In-Reply-To: <31620.1408161150@sss.pgh.pa.us>
References: <20140815211138.2543.16364@wrigleys.postgresql.org> <1408147143170-5815058.post@n5.nabble.com> <31620.1408161150@sss.pgh.pa.us>
* 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