Re: jsonpath: Missing Binary Execution Path? - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: jsonpath: Missing Binary Execution Path?
Date
Msg-id CE1CA3EF-5714-4177-8026-79C4D27B6383@justatheory.com
Whole thread Raw
In response to jsonpath: Missing Binary Execution Path?  ("David E. Wheeler" <david@justatheory.com>)
Responses Re: jsonpath: Missing Binary Execution Path?
List pgsql-hackers
On Jun 13, 2024, at 11:32, David E. Wheeler <david@justatheory.com> wrote:

> Should && and || not also work on scalar operands?

I see the same issue for unary !, too:

david=# select jsonb_path_query('true', '!$');
ERROR:  syntax error at or near "$" of jsonpath input
LINE 1: select jsonb_path_query('true', '!$');
                                        ^
david=# select jsonb_path_query('[1, 3, 7]', '$[*] ? (!true)');
ERROR:  syntax error at end of jsonpath input
LINE 1: select jsonb_path_query('[1, 3, 7]', '$[*] ? (!true)');
                                             ^
david=# select jsonb_path_query('[1, 3, 7]', '$[*] ? (!@.boolean())');
ERROR:  syntax error at or near "@" of jsonpath input
LINE 1: select jsonb_path_query('[1, 3, 7]', '$[*] ? (!@.boolean())'...
                                             ^

Best,

David




pgsql-hackers by date:

Previous
From: Dmitry Dolgov
Date:
Subject: Re: libpq contention due to gss even when not using gss
Next
From: Heikki Linnakangas
Date:
Subject: Re: MultiXactMemberFreezeThreshold can make autovacuum *less* aggressive