| From: | shihao zhong <zhong950419(at)gmail(dot)com> |
|---|---|
| To: | Kirill Reshke <reshkekirill(at)gmail(dot)com>, Amit Langote <amitlangote09(at)gmail(dot)com> |
| Cc: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, "303677365(at)qq(dot)com" <303677365(at)qq(dot)com>, "pgsql-bugs(at)lists(dot)postgresql(dot)org" <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 23:59:04 |
| Message-ID: | CAGRkXqQseXXrdEGiVgzZUF1J-KXKV2C16XgifPFDQ8RtMm4AOw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
Hi David,
> If we are keeping this we at least need to try and document it like we
> document how a composite typed function output can lead to multiple
> execution
Agreed, and thanks Kirill for checking the standard.
The attached patch adds a Tip to the JSON_TABLE docs, modeled on
the one Laurenz pointed to.
Thanks,
Shihao
| Attachment | Content-Type | Size |
|---|---|---|
| v1-0001-doc-Note-that-JSON_TABLE-can-evaluate-PASSING-val.patch | application/octet-stream | 1.7 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | shihao zhong | 2026-12-01 00:07:21 | Re: BUG #19944: Memoize caches volatile LATERAL scans across RTE_FUNCTION and RTE_VALUES, returning wrong results |
| Previous Message | shihao zhong | 2026-11-30 23:57:39 | Re: BUG #19872: JSON_TABLE: an UNUSED PASSING argument's COLLATE leaks into the output columns (wrong results, persi |