Re: Document that jsonpath == can be used as ANY - Mailing list pgsql-hackers

From Marcos Pegoraro
Subject Re: Document that jsonpath == can be used as ANY
Date
Msg-id CAB-JLwZeu=oX-D5AXcg=v9p9w+jODOBFJUBkD4PWyeiS3gTPew@mail.gmail.com
Whole thread
In response to Re: Document that jsonpath == can be used as ANY  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: Document that jsonpath == can be used as ANY
List pgsql-hackers
Em qua., 30 de set. de 2026 às 16:14, David G. Johnston <david.g.johnston@gmail.com> escreveu:
I feel like simply including an example here is insufficient.  There isn't anything special about == going on here;

Yes, I agree that an example only is insufficient.
But the behavior of == is indeed different when it's an array or a scalar value.
It will only work as an array only if assigned to a parameter, and a scalar works the same way for both.

regards
Marcos

pgsql-hackers by date:

Previous
From: Aleksander Alekseev
Date:
Subject: Re: Open SSI correctness issues
Next
From: Narayanan Venkateswaran
Date:
Subject: Re: Use instr_time for pg_stat_database block read/write time counters