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

[1]
https://www.postgresql.org/message-id/CAE9k0Pno%3DMns7J5HA4%2BbbXzb%3DyCZnCtSF_wf1ZipCQxardKDjA%40mail.gmail.com

Attachment: improve-cleaning-on-fatal-and-panic-elog.patch
Description: Binary data

Reply via email to