Re: BUG #16663: DROP INDEX did not free up disk space: idle connection hold file marked as deleted
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: "denni.pat" <denni.pat@gmail.com>
Cc: pgsql-bugs@postgresql.org
Date: 2020-10-15T23:54:32Z
Lists: pgsql-bugs, pgsql-hackers
On Thu, Oct 15, 2020 at 8:20 PM denni.pat <denni.pat@gmail.com> wrote: > thanks for the patch. > Do you think it can be included in the next minor releases or the only > solution will be to recompile? I would vote +1 for back-patching a fix for this problem (that is, pushing it into the minor releases), because I agree that it's very arguably a bug that we treat the segments differently, and looking around I do see reports of people having to terminate processes to get their disk space back. I'd definitely want a consensus on that plan from some experienced reviewers and testers, though. For anyone wanting to test this, you might want to set RELSEGSIZE to a smaller number in src/include/pg_config.h.
Commits
-
Use truncate(2) where appropriate.
- 57faaf376e19 14.0 landed
-
Free disk space for dropped relations on commit.
- e00928de8d22 9.5.25 landed
- d0bbe2122099 9.6.21 landed
- 22701755dc64 10.16 landed
- d5706ad7b70a 11.11 landed
- 50f338574242 12.6 landed
- fd3a75d820a4 13.2 landed
- 9f35f943732e 14.0 landed
-
Rename the "point is strictly above/below point" comparison operators.
- 0cc993278888 14.0 cited