47.1. Configuring Backend Diagnostics #
You must first configure, then run backend diagnostics. After this, you will be able to download and delete diagnostic files.
To configure backend diagnostics, in the postgresql.conf configuration file of all instances where diagnostics will run:
Enable backend diagnostics by setting the
crash_infoconfiguration parameter toon.(Optional) Specify the server directory to which diagnostic files will be saved using the
crash_info_locationconfiguration parameter.By default, the
$PGDATA/crash_infodirectory is used.Important
If you specify a non-default directory, you must grant the privilege to write to this directory to the operating system user on behalf of which the instance service runs.
If the agent service does not run on behalf of the superuser, you must grant the privilege to write to the specified directory to the operating system user on behalf of which the agent service runs. Otherwise, you will not be able to delete diagnostic files.
(Optional) Configure other backend diagnostics parameters.