Re: Patch: Improve Boolean Predicate JSON Path Docs
От
Erik Wienhold
Тема
Re: Patch: Improve Boolean Predicate JSON Path Docs
Дата
Msg-id
j2sqxxa2tyembatdd6yktv2mwp2mww7mx4wtng2j7vovsshzan@oesa2vtzalde
Ответ на
Re: Patch: Improve Boolean Predicate JSON Path Docs (David Wheeler)
Список
Дерево обсуждения
Patch: Improve Boolean Predicate JSON Path Docs "David E. Wheeler" <david@justatheory.com>
Re: Patch: Improve Boolean Predicate JSON Path Docs "David E. Wheeler" <david@justatheory.com>
Re: Patch: Improve Boolean Predicate JSON Path Docs Erik Wienhold <ewie@ewie.name>
Re: Patch: Improve Boolean Predicate JSON Path Docs "David E. Wheeler" <david@justatheory.com>
Re: Patch: Improve Boolean Predicate JSON Path Docs Erik Wienhold <ewie@ewie.name>
Re: Patch: Improve Boolean Predicate JSON Path Docs "David E. Wheeler" <david@justatheory.com>
Re: Patch: Improve Boolean Predicate JSON Path Docs Erik Wienhold <ewie@ewie.name>
Re: Patch: Improve Boolean Predicate JSON Path Docs "David E. Wheeler" <david@justatheory.com>
Re: Patch: Improve Boolean Predicate JSON Path Docs jian he <jian.universality@gmail.com>
Re: Patch: Improve Boolean Predicate JSON Path Docs "David E. Wheeler" <david@justatheory.com>
Re: Patch: Improve Boolean Predicate JSON Path Docs Erik Wienhold <ewie@mailbox.org>
Re: Patch: Improve Boolean Predicate JSON Path Docs "David E. Wheeler" <david@justatheory.com>
Re: Patch: Improve Boolean Predicate JSON Path Docs Erik Wienhold <ewie@ewie.name>
Re: Patch: Improve Boolean Predicate JSON Path Docs "David Wheeler" <david@justatheory.com>
Re: Patch: Improve Boolean Predicate JSON Path Docs Erik Wienhold <ewie@ewie.name>
Re: Patch: Improve Boolean Predicate JSON Path Docs "David E. Wheeler" <david@justatheory.com>
Re: Patch: Improve Boolean Predicate JSON Path Docs Erik Wienhold <ewie@ewie.name>
Re: Patch: Improve Boolean Predicate JSON Path Docs "David E. Wheeler" <david@justatheory.com>
Re: Patch: Improve Boolean Predicate JSON Path Docs shihao zhong <zhong950419@gmail.com>
Re: Patch: Improve Boolean Predicate JSON Path Docs Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch: Improve Boolean Predicate JSON Path Docs Tom Lane <tgl@sss.pgh.pa.us>
Re: Re: Patch: Improve Boolean Predicate JSON Path Docs Erik Wienhold <ewie@ewie.name>
Re: Patch: Improve Boolean Predicate JSON Path Docs "David E. Wheeler" <david@justatheory.com>
Re: Patch: Improve Boolean Predicate JSON Path Docs Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch: Improve Boolean Predicate JSON Path Docs Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch: Improve Boolean Predicate JSON Path Docs "David E. Wheeler" <david@justatheory.com>
Re: Patch: Improve Boolean Predicate JSON Path Docs Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch: Improve Boolean Predicate JSON Path Docs "David E. Wheeler" <david@justatheory.com>
Re: Patch: Improve Boolean Predicate JSON Path Docs Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch: Improve Boolean Predicate JSON Path Docs "David E. Wheeler" <david@justatheory.com>
Re: Patch: Improve Boolean Predicate JSON Path Docs "David E. Wheeler" <david@justatheory.com>
Re: Patch: Improve Boolean Predicate JSON Path Docs "David E. Wheeler" <david@justatheory.com>
Re: Patch: Improve Boolean Predicate JSON Path Docs Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch: Improve Boolean Predicate JSON Path Docs "David E. Wheeler" <david@justatheory.com>
Re: Patch: Improve Boolean Predicate JSON Path Docs Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch: Improve Boolean Predicate JSON Path Docs "David E. Wheeler" <david@justatheory.com>
Re: Patch: Improve Boolean Predicate JSON Path Docs David E. Wheeler <david@justatheory.com>
On 2023-10-20 15:49 +0200, David Wheeler wrote: > On Oct 19, 2023, at 23:49, Erik Wienhold wrote: > > > I don't even know what that represents, probably not some fancy file > > compression. That's an AppleSingle file according to [1][2]. It only contains the resource fork and file name but no data fork. > Oh, weird. Trying from a webmail client instead. Thanks. > + Does JSON path return any item for the specified JSON value? Use only > + SQL-standard JSON path expressions, not > + predicate check > + expressions. Any reason for calling it "predicate check expressions" (e.g. the link text) and sometimes "predicate path expressions" (e.g. the linked section title)? I think it should be named consistently to avoid confusion and also to simplify searching. > + Returns the result of a JSON path > + predicate > + check for the specified JSON value. If the result is not Boolean, > + then NULL is returned. Use only with > + predicate check > + expressions. Linking the same section twice in the same paragraph seems excessive. > +=> select jsonb_path_query(:'json', '$.track.segments'); > +select jsonb_path_query(:'json', '$.track.segments'); Please remove the second SELECT. > +=> select jsonb_path_query(:'json', 'strict $.track.segments[0].location'); > + jsonb_path_query > +------------------- > + [47.763, 13.4034] Strict mode is unnecessary to get that result and I'd omit it because the different modes are not introduced yet at this point. > +=> select jsonb_path_query(:'json', 'strict $.track.segments.size()'); > + jsonb_path_query > +------------------ > + 2 Strict mode is unnecessary here as well. > + using the lax mode. To avoid surprising results, we recommend using > + the .** accessor only in the strict mode. The Please change to "in strict mode" (without "the"). [1] https://www.rfc-editor.org/rfc/rfc1740.txt [2] https://web.archive.org/web/20180311140826/http://kaiser-edv.de/documents/AppleSingle_AppleDouble.pdf -- Erik
В списке pgsql-hackers по дате отправления