| From: | Ranier Vilela <ranier(dot)vf(at)gmail(dot)com> |
|---|---|
| To: | Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Improve cleaning files on Postgres crashes |
| Date: | 2025-02-18 12:58:46 |
| Message-ID: | CAEudQAriC1jYSJiJdnQ1S35SqAg5C94Lnr5u+2uGQw4SRaK5kg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi.
There are some reports that Postgres does not handle correctly cleaning the
files used when it crashes. [1]
I think that function *fcloseall* can help a little bit.
Mainly on Windows.
/*
* Closes all of the calling process's open streams.
* On Windows, close and remove all temporary files created by tmpfile
function.
*/
patch attached.
best regards,
Ranier Vilela
| Attachment | Content-Type | Size |
|---|---|---|
| improve-cleaning-on-fatal-and-panic-elog.patch | application/octet-stream | 884 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Rahila Syed | 2025-02-18 13:05:38 | Re: Enhancing Memory Context Statistics Reporting |
| Previous Message | Andrei Lepikhov | 2025-02-18 12:52:15 | Re: Improve statistics estimation considering GROUP-BY as a 'uniqueiser' |