Dec 2020

2 commits
Use truncate(2) where appropriate.
1 Dec 2020Thomas Munromaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1
LLM analysis, 100% surelanded as postedfrom patchset #17

The commit matches the second patch in #17 modulo whitespace: it introduces pg_truncate() in src/backend/storage/file/fd.c, declares it in src/include/storage/fd.h, and uses it in src/backend/storage/smgr/md.c.

Free disk space for dropped relations on commit.
1 Dec 2020Thomas Munromaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1REL_13_STABLE13.2+5 more
LLM analysis, 100% surelanded as postedfrom patchset #170 of 3 reviewers saw the final version

The commit's src/backend/storage/smgr/md.c diff exactly matches the first patch in #17, including status-returning do_truncate(), errno preservation, and ENOENT handling.

  • Pavel Borisovsaw an earlier versiontrailerPavel refactored #7 in #11, explained return-value initialization in #13, and reported successful testing in #16, before #17 changed truncation status and error-path control flow.
  • Neil Chensaw an earlier versiontrailerNeil reported passing feature and installcheck-world tests in #12 and questioned additional-segment deletion control flow in #14, before the error-handling revision in #17.
  • David Zhangsaw an earlier versiontrailerDavid demonstrated that #11 reduced deleted index segments to zero bytes in #15, before #17 changed truncation status and missing-file handling.

Credits across 2 commits

Author
Thomas MunroLLM2
Reviewer
David Zhang1
Neil Chen1
Pavel Borisov1
Reported by
denis.patron1
Committer
Thomas Munro2

N LLM means N of the credits come from LLM analysis, not from commit trailers.