model-writtenrun 4350 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- MARK CALLAGHAN opened the thread with PostgreSQL 15.2 versus 16 insert benchmarks showing possible small regressions, while Andres Freund questioned latency variability and Mark arranged repeat runs and better profiling #1 #2 #3 #7.
- Alexander Lakhin independently found a repeatable pgbench regression and bisected it to the replacement of SQLValueFunction; Andres Freund reproduced a slowdown with SELECT CURRENT_TIMESTAMP and traced substantial overhead to generic function initialization and permission checks #4 #5.
- A separate investigation concerned slower TPC-DS query execution: David Rowley attributed the changed plan choice to inaccurate row estimates, and Alexander found that increasing work_mem did not eliminate the slowdown #8 #9 #11.
- Michael Paquier reproduced a smaller SQL-keyword regression and submitted two reverts restoring SQLValueFunction, retaining the added precision tests and adapting the restored node for query jumbling; he planned to combine the patches before beta1 #12.
- Andres Freund suggested checking assertions and pinning client and server to the same CPU core; Michael tried the advice but concluded that preserving the refactoring's performance would require executor redesign that could not be completed for PostgreSQL 16 #13 #15 #16.
- Alexander Lakhin tested both revert patches and confirmed restored pgbench throughput, after which Michael committed them together with an updated catalog version as d8c3106bb6 and announced that the revert was ready for beta1 #17 #18.
- Alexander's subsequent benchmarks with CPU boost disabled found the restored implementation slightly faster than PostgreSQL 15.3, closing the SQLValueFunction regression investigation #19.
- Mark's repeated insert benchmarks suggested that the original small differences could be noise, while subsequent sysbench tests showed substantial gains for some read-only workloads that persisted in beta1 #22 #23 #24.
- David Rowley located the gains in sorting, and Peter Geoghegan proposed ICU's abbreviated sort keys as the explanation and suggested trace_sort checks; the thread contains no subsequent confirmation of that hypothesis #25 #26 #28.
- At the final update, the SQLValueFunction revert had landed, but Alexander still observed small TPC-DS regressions from the separate planner change and had found no benefiting workloads in his expanded benchmark suite #29.