Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XIV2p-0001eq-Kq for pgsql-bugs@arkaria.postgresql.org; Sat, 16 Aug 2014 03:52:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XIV2p-0003aj-00 for pgsql-bugs@arkaria.postgresql.org; Sat, 16 Aug 2014 03:52:43 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XIV2m-0003aa-Sx for pgsql-bugs@postgresql.org; Sat, 16 Aug 2014 03:52:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XIV2f-00019q-JG for pgsql-bugs@postgresql.org; Sat, 16 Aug 2014 03:52:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s7G3qUZE031621; Fri, 15 Aug 2014 23:52:30 -0400 From: Tom Lane To: David G Johnston cc: pgsql-bugs@postgresql.org, cpronovost@innvue.com Subject: Re: Re: BUG #11178: JSONB : The NOT operator applies to the <@ operator, even after casting to ::bool In-reply-to: <1408147143170-5815058.post@n5.nabble.com> References: <20140815211138.2543.16364@wrigleys.postgresql.org> <1408147143170-5815058.post@n5.nabble.com> Comments: In-reply-to David G Johnston message dated "Fri, 15 Aug 2014 16:59:03 -0700" Date: Fri, 15 Aug 2014 23:52:30 -0400 Message-ID: <31620.1408161150@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org David G Johnston 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