model-writtenrun 4893 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Aleksander Alekseev proposed combining pg_dump's individual table-lock commands into batches to avoid thousands of network round trips, submitting an implementation with a roughly 1 MB query-length threshold #1.
- FabrÃzio de Royes Mello approved the code and reported passing tests #2, while Tom Lane recalled previously investigating the idea and requested performance evidence #3 #5; Andres Freund distinguished latency-bound workloads from CPU-bound ones and suggested exploring libpq pipelining #4.
- FabrÃzio de Royes Mello supplied schema-only benchmarks showing substantial gains, including a reduction from about 470 seconds to 21 seconds for 100000 tables #7; Andres Freund questioned the build configuration and then independently confirmed large latency-related gains, finding pipelining slightly slower than batching in his initial comparison #8 #9.
- Tom Lane questioned whether realistic latency and full data dumps justified the change #10; Jacob Champion pointed out pg_upgrade's schema-only workload and the benefit of shortening exposure to concurrent DDL #11, while Andres Freund demonstrated that parallel COPY makes serial locking a bottleneck, reducing a full parallel dump from about 128 seconds to 24 seconds with 5 ms latency #12.
- Tom Lane accepted the performance and concurrency arguments while retaining an unexplained concern from his earlier experiments, allowing the existing batching approach to proceed #13.
- Gilles Darold subsequently reported successful build and test coverage, reproduced the schema-only performance gains, and marked the patch ready for committers #14.
- Tom Lane committed the sole submission #1 as 5f53b42cfd, retaining its batching structure but reducing the query-length threshold to 100000 bytes and making small code cleanups; his closing message confirmed the landing and explained that the smaller batches should avoid stressing smaller servers without a measurable performance penalty #15.