On Thu, Nov 24, 2022 at 10:27 AM David E. Wheeler <david(at)justatheory(dot)com>
wrote:
> On Nov 24, 2022, at 12:16, David G. Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
> wrote:
>
> > There is a bug in this area though the syntax itself is valid since
> you've simply defined a variable.
>
> Sorry, I don’t follow. What variable is defined? I mean `$` is a variable
> for the whole expression, and always required at the start of a JSONPath
JSONPath can do/represent much more than you are thinking here.
https://www.postgresql.org/docs/current/datatype-json.html#DATATYPE-JSONPATH
Note the second entry ($varname) in table 8.24
David J.