Nov 2025

1 commit
Avoid rewriting data-modifying CTEs more than once.
29 Nov 2025Dean Rasheedmaster19beta1REL_19_STABLE19beta1REL_18_STABLE18.2REL_17_STABLE17.8REL_16_STABLE16.12REL_15_STABLE15.16REL_14_STABLE14.21
LLM analysis, 100% suremodified before commitlight changesfrom patchset #141 of 2 reviewers saw the final version

The commit preserves the count-based implementation from #14, substitutes foreach_current_index() for the manual counter, adds the rewriteRuleAction() ordering comment requested in #15, and expands the with.sql regression test to combine rules and views as explained in #18. Its Author trailers credit both Bernice Southey and patchset sender Dean Rasheed.

  • Tom Lanesaw the final versiontrailerTom questioned the original recursion assumptions, proposed count-based tracking in #11, and approved #14 with the macro and comment suggestions in #15 that were incorporated.
  • Kirill Reshkesaw an earlier versiontrailerKirill reviewed the initial approach and regression-test choices in #2, before the substantial change from a top-level guard to recursive CTE tracking.

Credits across 1 commit

Author
Bernice Southey1
Dean Rasheed1
Reviewer
Kirill Reshke1
Tom Lane1
Reported by
Bernice Southey1
Committer
Dean Rasheed1