A system parameter determining whether to remove temporary files after a crash

remove_temp_files_after_crash is a configuration parameter determining whether to automatically remove temporary files after a backend crash.

remove_temp_files_after_crash was added in PostgreSQL 14.


remove_temp_files_after_crash is intended for development purposes only and should only be disabled on production instances if there is a need to collect information for diagnostic or forensic purposes.

Default value

The default value for remove_temp_files_after_crash is: on.

Change history


Development/testing, GUC configuration item