Apr 2025

1 commit
Avoid double transformation of json_array()'s subquery.
5 Apr 2025Tom Lanemaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1REL_17_STABLE17.5REL_16_STABLE16.9
LLM analysis, 100% surewritten from the discussion, no matching patch2 of 2 reviewers saw the final version

The commit implements Tom Lane's inline copyObject(ctor->query) fix from #4 in src/backend/parser/parse_expr.c and adds a regression test in sqljson.sql and sqljson.out. The attached alternative #6 removes the preliminary transformation instead; #7 explicitly chooses the inline fix for backpatching.

  • Tender Wangsaw the final versionLLM analysis, 86% sureTender Wang identified the multi-column error-reporting problem with relying on the constructed EXPR_SUBLINK in #5, supporting retention of the existing validation in the inline fix.
  • Alvaro Herrerasaw the final versionLLM analysis, 98% sureAlvaro Herrera explored the single-transformation alternative in #6 and agreed in #8 with applying the copyObject fix while deferring the larger redesign.

Credits across 1 commit

Author
Tom Lane1
Reported by
Liang Sr., Yu1
Committer
Tom Lane1