postgresql/src/include/postmaster
Tomas Vondra cd91de0d17 Remove temporary files after backend crash
After a crash of a backend using temporary files, the files used to be
left behind, on the basis that it might be useful for debugging. But we
don't have any reports of anyone actually doing that, and it means the
disk usage may grow over time due to repeated backend failures (possibly
even hitting ENOSPC). So this behavior is a bit unfortunate, and fixing
it required either manual cleanup (deleting files, which is error-prone)
or restart of the instance (i.e. service disruption).

This implements automatic cleanup of temporary files, controled by a new
GUC remove_temp_files_after_crash. By default the files are removed, but
it can be disabled to restore the old behavior if needed.

Author: Euler Taveira
Reviewed-by: Tomas Vondra, Michael Paquier, Anastasia Lubennikova, Thomas Munro
Discussion: https://postgr.es/m/CAH503wDKdYzyq7U-QJqGn%3DGm6XmoK%2B6_6xTJ-Yn5WSvoHLY1Ww%40mail.gmail.com
2021-03-18 17:38:28 +01:00
..
autovacuum.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
bgworker.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
bgworker_internals.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
bgwriter.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
fork_process.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
interrupt.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
pgarch.h Make archiver process an auxiliary process. 2021-03-15 13:13:14 +09:00
postmaster.h Remove temporary files after backend crash 2021-03-18 17:38:28 +01:00
startup.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
syslogger.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
walwriter.h Update copyright for 2021 2021-01-02 13:06:25 -05:00