Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XIfBA-0006fu-JB for pgsql-bugs@arkaria.postgresql.org; Sat, 16 Aug 2014 14:42:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XIfB9-0001dg-5Q for pgsql-bugs@arkaria.postgresql.org; Sat, 16 Aug 2014 14:41:59 +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 1XIfB8-0001dZ-Dr for pgsql-bugs@postgresql.org; Sat, 16 Aug 2014 14:41:58 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XIfB5-0004Lf-4u for pgsql-bugs@postgresql.org; Sat, 16 Aug 2014 14:41:56 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1XIfB0-0006AA-Ax; Sat, 16 Aug 2014 10:41:50 -0400 Date: Sat, 16 Aug 2014 10:41:50 -0400 From: Bruce Momjian To: Tom Lane Cc: David G Johnston , 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 Message-ID: <20140816144150.GA10717@momjian.us> References: <20140815211138.2543.16364@wrigleys.postgresql.org> <1408147143170-5815058.post@n5.nabble.com> <31620.1408161150@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31620.1408161150@sss.pgh.pa.us> User-Agent: Mutt/1.5.20 (2009-06-14) 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 On Fri, Aug 15, 2014 at 11:52:30PM -0400, Tom Lane wrote: > 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... Just to be clear, pg_upgrade can handle system catalog changes, while it can't handle data format changes. However, I support changing the JSONB data format to be optimal. FYI, I have always been concerned that pg_upgrade would inhibit data storage format improvements. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs