Re: Patch: Improve Boolean Predicate JSON Path Docs - Mailing list pgsql-hackers

From jian he
Subject Re: Patch: Improve Boolean Predicate JSON Path Docs
Date
Msg-id CACJufxHaUC=mFzWiR_KfrNdWc0totTqvVYQACJHTP0CT2T5T3g@mail.gmail.com
Whole thread Raw
In response to Re: Patch: Improve Boolean Predicate JSON Path Docs  ("David E. Wheeler" <david@justatheory.com>)
Responses Re: Patch: Improve Boolean Predicate JSON Path Docs
List pgsql-hackers
On Tue, Oct 17, 2023 at 10:56 AM David E. Wheeler <david@justatheory.com> wrote:
>
>
> Oh, I thought it would report issues from the files they were found in. You’re right, I forgot a title. Fixed in v4.
>
> David
>

+        Returns the result of a JSON path
+        <link linkend="boolean-predicate-path-expressions">predicate
+        check</link> for the specified JSON value. If the result is
not Boolean,
+        then <literal>NULL</literal> is returned. Do not use with non-predicate
+        JSON path expressions.

"Do not use with non-predicate", double negative is not easy to
comprehend. Maybe we can simplify it.

16933:         value. Use only SQL-standard JSON path expressions, not not
there are two "not".

15842:         SQL-standard JSON path expressions, not not
there are two "not".



pgsql-hackers by date:

Previous
From: Peter Smith
Date:
Subject: Re: boolin comment not moved when code was refactored
Next
From: Michael Paquier
Date:
Subject: Re: pgBufferUsage.blk_{read|write}_time are zero although there are pgBufferUsage.local_blks_{read|written}