pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Brian Mendoza <brian@rotamap.net>
Cc: pgsql-general@postgresql.org
Subject: Re: JSONB operator unanticipated behaviour
Date: Thu, 18 May 2023 12:36:41 -0400
Message-ID: <3853945.1684427801@sss.pgh.pa.us> (raw)
In-Reply-To: <fad1c44c-63d5-d064-cd16-01ffe48abbd8@aklaver.com>
References: <CALWFwZ0GG_5fUCXfLMTMSZjO0VnrL=r2sHPJ_9Sr1623_5MP=w@mail.gmail.com>
	<c8663245-c568-9071-817b-06a288fd4e0d@aklaver.com>
	<CALWFwZ2eUvhipOkYzyqxjadOwA2s5Q-AR8B0mLNBT2T2ZoPN3A@mail.gmail.com>
	<3802023.1684424813@sss.pgh.pa.us>
	<fad1c44c-63d5-d064-cd16-01ffe48abbd8@aklaver.com>

Adrian Klaver <adrian.klaver@aklaver.com> writes:
> On 5/18/23 08:46, Tom Lane wrote:
>> You seem to be reading some fairly old version of the documentation.
>> The extended definition that Adrian mentions has been there for
>> awhile, but the JSON operator table didn't link to it before v13.
>> (I agree that the "top level" bit was just wrong, but it's gone.)

> Can you elaborate on gone and/or wrong as I see it in the 15 and devel 
> documentation.

In v12 (and probably earlier, didn't look) Table 9.45 defines @> as
"Does the left JSON value contain the right JSON path/value entries
at the top level?" [1].

			regards, tom lane

[1] https://www.postgresql.org/docs/12/functions-json.html





view thread (7+ messages)  latest in thread

Message-ID: <3853945.1684427801@sss.pgh.pa.us>
Permalink:  ../3853945.1684427801@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3853945.1684427801@sss.pgh.pa.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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, adrian.klaver@aklaver.com, brian@rotamap.net
  Subject: Re: JSONB operator unanticipated behaviour
  In-Reply-To: <3853945.1684427801@sss.pgh.pa.us>
  References: <CALWFwZ0GG_5fUCXfLMTMSZjO0VnrL=r2sHPJ_9Sr1623_5MP=w@mail.gmail.com> <c8663245-c568-9071-817b-06a288fd4e0d@aklaver.com> <CALWFwZ2eUvhipOkYzyqxjadOwA2s5Q-AR8B0mLNBT2T2ZoPN3A@mail.gmail.com> <3802023.1684424813@sss.pgh.pa.us> <fad1c44c-63d5-d064-cd16-01ffe48abbd8@aklaver.com> <3853945.1684427801@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