model-writtenrun 7263 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Amit Langote opened the thread with #1, proposing removal of the unused NEW placeholder while retaining OLD for view metadata and to avoid widespread changes to deparsed regression output.
- Alvaro Herrera argued in #3 that avoiding test churn did not justify retaining OLD, leading Amit to present both alternatives in #4 and correct expected outputs in #5; the broader alternative removed stored placeholders but recreated one during query rewriting.
- After CI tried to apply the mutually exclusive alternatives together, Amit selected the broader approach and resent its unchanged patch alone in #7.
- Tom Lane explained in #8 that recreating a placeholder remained expensive and failed to eliminate quadratic planning behavior, and proposed retaining view identity and permission metadata on the replacement subquery RTE.
- Amit implemented that design in #9, removing placeholder reconstruction and adapting planner and locking code, while noting that serialization did not yet preserve the reused subquery fields.
- Tom committed #9 as 1b4d280ea1, adding serialization support, correcting locking and planner conditions, and improving comments; his report in #10 explained why existing tests had missed lost locking metadata.
- The desired elimination of quadratic nested-view planning remained unfinished: Tom traced the remaining cost to repeated copyObject calls during subquery pull-up in #10, and Amit offered to investigate integrating view expansion with pull-up and suggested another possible cleanup in #11.
- Cross-version upgrade tests then failed because view dumps lost unnecessary column qualifications, prompting Tom to warn of a possible revert in #12; Justin Pryzby confirmed the output differences and suggested filtering in #14.
- Andrew Dunstan and Tom rejected overly broad filtering or tolerance changes in #15 and #16, then converged on source-controlled upgrade-adjustment functions in #19 and #20.
- The associated commit 47bb9db759 records a second landing of 1b4d280ea1, enabled by AdjustUpgrade.pm filtering rules for the cosmetic CREATE VIEW differences.
- The second landing 47bb9db759 combines Amit's backend and regression changes from #9, retaining the first landing's serialization, locking and planner corrections, with Tom's upgrade-test filtering from #525191 in thread #47264, so each thread supplied part of the commit.
- In April, Amit identified the missed planner-side view-lock acquisition and supplied #21; Tom agreed with the fix but questioned its unrelated planner.c change in #22.
- Tom landed the locking fix as 65eb2d00c6 with cleanup and without the accidental planner change, explaining in #23 that earlier invalidation detection avoids wasted planning even though he had not demonstrated a live failure.
- At the thread's close, Amit confirmed the stray hunk came from the wrong branch and accepted the committed fix in #24; both changes had landed, while the broader nested-view planning optimization remained future work.