Oct 2025

8 commits
Avoid short seeks in pg_restore.
21 Oct 2025Tom Lanemaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #461 of 1 reviewer saw the final version

Derived from #46, but _skipData() seeks at blkLen >= 4 * 1024 instead of blkLen > 32 * 1024, uses size_t for buflen, and allocates at least 4 KB. The threshold decision is documented in #47.

  • Tom Lanesaw the final versiontrailerBenchmarked #37 on Linux and macOS, investigated #46 with strace, selected the final threshold in #47, and committed the result.
Add more TAP test coverage for pg_dump.
16 Oct 2025Tom Lanemaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #340 of 1 reviewer saw the final version

Takes the third patch of #34, with identical added and removed lines in 002_pg_dump.pl and 006_pg_dump_compress.pl. The block-size implementation and test-file extraction were committed separately.

  • Chao Lisaw an earlier versionLLM analysis, 90% sureExplicitly reviewed the new test cases in #28 and found no issues in #29, before their consolidation and the test-suite restructuring in #34.
Split 002_pg_dump.pl into two test files.
16 Oct 2025Tom Lanemaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #34

Takes the second patch of #34, with identical added and removed lines: extracts 006_pg_dump_compress.pl, removes the corresponding tests from 002_pg_dump.pl, and registers the script in meson.build.

Align the data block sizes of pg_dump's various compression modes.
16 Oct 2025Tom Lanemaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #341 of 1 reviewer saw the final version

Takes the first patch of #34 unchanged, setting DEFAULT_IO_BUFFER_SIZE to 128 KB, adjusting LZ4 buffer sizing, and adding NoneCompressorState buffering. The two test patches were committed separately.

  • Chao Lisaw the final versionLLM analysis, 100% sureReviewed the buffering implementation in #29 and confirmed faster selective restores in #33; that implementation remained unchanged in #34.
Fix serious performance problems in LZ4Stream_read_internal.
13 Oct 2025Tom Lanemaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #231 of 1 reviewer saw the final version

Takes the third patch of #23, with identical added and removed lines in compress_lz4.c, replacing repeated overflow-buffer memmoves with indexed input and output buffers. The other series components landed separately.

  • Chao Lisaw the final versiontrailerTested manually compressed LZ4 toc.dat restoration, reported the performance improvement, and reviewed the implementation in #24.
Fix poor buffering logic in pg_dump's lz4 and zstd compression code.
13 Oct 2025Tom Lanemaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #231 of 1 reviewer saw the final version

Combines the first patch of #23 with the Zstd_read_internal zero-byte optimization from its fourth patch. The posted logic is retained, while the gzip fix, block-size alignment, and LZ4 decompression rewrite are excluded from this commit.

  • Chao Lisaw the final versiontrailerReviewed the series in #24 and suggested factoring repeated LZ4 flush logic, which Tom Lane declined on readability grounds in #28.
Fix issue with reading zero bytes in Gzip_read.
13 Oct 2025Tom Lanemaster19beta1REL_19_STABLE19beta1REL_18_STABLE18.1REL_17_STABLE17.7REL_16_STABLE16.11
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #231 of 1 reviewer saw the final version

Extracts exactly the four-line Gzip_read zero-size guard from the fourth patch of #23. Its accompanying Zstd_read_internal change was instead included in fe8192a95e.

  • Chao Lisaw the final versiontrailerReproduced the compressed toc.dat failure and confirmed successful restoration with the zero-byte fix in #24.
Restore test coverage of LZ4Stream_gets().
11 Oct 2025Tom Lanemaster19beta1REL_19_STABLE19beta1REL_18_STABLE18.1REL_17_STABLE17.7
LLM analysis, 100% surewritten from the discussion, no matching patch

No attachment contains this nine-line addition restoring manual LZ4 compression of blobs_*.toc in 002_pg_dump.pl. The commit explicitly attributes its discovery to testing the compression changes discussed in #21, and later test patches already contain the restored setup.

Credits across 8 commits

Author
Tom Lane7
Dimitrios Apostolou1
Reviewer
Chao Li3
Tom Lane1
Reported by
Dimitrios Apostolou1
Committer
Tom Lane8