Re: BUG #19871: JSON_TABLE evaluates each PASSING argument once per column - a named variable $v gets different valu

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: 303677365(at)qq(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19871: JSON_TABLE evaluates each PASSING argument once per column - a named variable $v gets different valu
Date: 2026-11-30 05:25:34
Message-ID: CAGRkXqS4-2zHvD67YnC8xAd0+fQm059KLPUD7qgwYyZzk3jDzg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi ChunLing,

Thanks for reporting that and I can reproduce it.

I am leaning into not a bug for that report because each JSON_TABLE
column is evaluated like its own JSON_VALUE() call with the same PASSING
clause,
and the docs don't promise that the arguments are evaluated only once. And
it only shows
with a volatile argument.

Thanks,
Shihao

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Ayush Tiwari 2026-11-30 05:29:10 Re: BUG #19723: CREATE INDEX racing with ALTER INDEX ATTACH PARTITION triggers unexpected internal error
Previous Message shihao zhong 2026-11-30 05:05:35 Re: BUG #19870: WinGetFuncArgInPartition(..., WINDOW_SEEK_TAIL, ...) returns wrong rows under IGNORE NULLS