model-writtenrun 3650 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- David Rowley proposed delaying Memoize hash-table creation until execution to avoid unexplained delays in plain EXPLAIN and align its behavior with hash joins, judging the additional existence check unlikely to impose noticeable overhead #1.
- The attached patch initializes the table pointer to NULL, builds the table on demand, defers rebuilding after cache purges, and guards shutdown accounting when no table was created #1.
- David's benchmarks showed plain EXPLAIN dropping from roughly 53–70 milliseconds to 0.44–0.47 milliseconds with the patch, while a cache-hit-heavy execution test showed no slowdown #2.
- David chose to commit only to master because there had been no complaints warranting backpatching, leaving that decision open to reconsideration if complaints arrived #2.
- David committed the patch with minor cleanup as 57f59396bb and confirmed it was pushed, completing the thread's proposed change #3.