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:

  1. Enable backend diagnostics by setting the crash_info configuration parameter to on.

  2. (Optional) Specify the server directory to which diagnostic files will be saved using the crash_info_location configuration parameter.

    By default, the $PGDATA/crash_info directory 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.

  3. (Optional) Configure other backend diagnostics parameters.