Re: BUG #16663: DROP INDEX did not free up disk space: idle connection hold file marked as deleted
Pavel Borisov <pashkin.elfe@gmail.com>
From: Pavel Borisov <pashkin.elfe@gmail.com>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: "denni.pat" <denni.pat@gmail.com>, pgsql-bugs@postgresql.org
Date: 2020-11-11T14:13:13Z
Lists: pgsql-bugs, pgsql-hackers
Attachments
- v2-0001-Free-disk-space-for-dropped-relations-on-commit.patch (application/octet-stream) patch v2-0001
Thomas, I get into the patch and I think it's worth being committed and backpatched. BTW I noticed that sometimes the same comparisons are done twice, and I made a very minor refactor of the code. PFA v2 of a patch if you don't mind. As for the question on what to do with the additional segments if the first one failed to be truncated, I don't consider myself experienced enough and surely someone else's independent opinion is very much welcome. -- Best regards, Pavel Borisov Postgres Professional: http://postgrespro.com <http://www.postgrespro.com>
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