model-writtenrun 7536 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Joel Jacobson reported sharply increasing planning times for deeply nested trivial views, with a reproducer reaching roughly 1.6 seconds at 256 levels, in #1.
- Tom Lane identified cubic copying costs and posted #2, which clears unused subquery trees after flattening to reduce growth to quadratic; he explained that range-table entries still support privilege checks and left similar changes to sibling pull-up functions outside the patch.
- Tom traced the concern about multiple jointree references to a historical rewriter bug and concluded that clearing the pointer would make any recurrence easier to diagnose, then queued the patch for a commitfest in #3.
- Joel successfully tested the patch and reported that planning at 256 levels fell from roughly 1.6 seconds to 47 milliseconds in #4.
- Dean Rasheed reviewed and benchmarked the patch, checked DML performance against deeply nested views, and requested an update to the obsolete copying comment in #5.
- Tom accepted the comment correction and announced his intention to commit in #6; 64919aaab4 subsequently landed the patch from #2 with only that comment change, leaving broader range-table restructuring to separate discussion.