| From: | Ishjaap Singh <ishjaap(dot)singh07(at)gmail(dot)com> |
|---|---|
| To: | Amit Langote <amitlangote09(at)gmail(dot)com> |
| Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, 303677365(at)qq(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org, e1638616(at)u(dot)nus(dot)edu |
| Subject: | Re: BUG #19851: Adding a tautological CHECK(true) to a domain changes JSON_VALUE's result (silent NULL, value/type c |
| Date: | 2026-12-04 06:43:17 |
| Message-ID: | CA+Y2BmdtkMiOSkd748tdRj8MrZViO8vJ+nLPSOiF49imwGFpUQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
Hi Amit,
I tested v2 on master, 19, 18 and 17. All four build cleanly and pass
make check, and the new tests fail without the fix. My #19825 tests
pass too.
I also tried a few dozen cases with different domains, DEFAULTs and
NULLs on stock and patched builds. The only results that changed are
the ones in your commit message, and 17 to 19 match master.
About the minor release question: I created views on 17 with stock and
with v2 in the same data directory, and each version could read the
other's views fine.
One nit: the comment in ExecEvalJsonExprPath() says a NULL input skips
ON ERROR, but ON ERROR still applies when the domain rejects the NULL,
e.g. JSON_VALUE(NULL::jsonb, '$' RETURNING d DEFAULT 'x' ON ERROR)
gives 'x' with a NOT NULL domain. That was already the case before v2.
Otherwise looks good to me.
Regards,
Ishjaap Singh
| From | Date | Subject | |
|---|---|---|---|
| Next Message | PG Bug reporting form | 2026-12-04 08:39:43 | BUG #19976: Internal planner error: ERROR: XX000: too late to create a new PlaceHolderInfo |
| Previous Message | Kirill Reshke | 2026-12-04 05:00:14 | Re: BUG #19968: ALTER COLUMN TYPE fails with internal errors if a dependent object is dropped concurrently |