pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: 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: Sat, 16 Aug 2014 10:41:50 -0400
Message-ID: <20140816144150.GA10717@momjian.us> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On Fri, Aug 15, 2014 at 11:52:30PM -0400, Tom Lane wrote:
> 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...

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  <bruce@momjian.us>        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



view thread (7+ messages)  latest in thread

Message-ID: <20140816144150.GA10717@momjian.us>
Permalink:  ../20140816144150.GA10717@momjian.us/
Also on:    postgresql.org/message-id/20140816144150.GA10717@momjian.us

 · 

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-bugs@postgresql.org
  Cc: bruce@momjian.us, 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: <20140816144150.GA10717@momjian.us>
  References: <20140815211138.2543.16364@wrigleys.postgresql.org> <1408147143170-5815058.post@n5.nabble.com> <31620.1408161150@sss.pgh.pa.us> <20140816144150.GA10717@momjian.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