Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
Chapter 31. Troubleshooting
Prev UpPart III. Server AdministrationHome Next

Chapter 31. Troubleshooting

Postgres Pro offers the ability to dump the state of a backend process, which can be useful for diagnostic and debugging purposes, by enabling thecrash_info configuration parameter. Then the dump state file can be generated in one of the following ways:

  • By sending the signal40 (also known as the diagnostic dump signal):

    kill -40backend_pid
  • Using thepg_diagdump() function:

    SELECT pg_diagdump(backend_pid);

Herebackend_pid is the process ID of the backend process to dump.

As a result,Postgres Pro will write the state dump to a file in the$PGDATA/crash_info directory by default or in the directory specified in thecrash_info_location configuration parameter. The file will be named following this pattern:crash_file_id_pidpid.state. You can set the data sources to provide data for a crash dump in thecrash_info_dump configuration parameter.

The below example shows how to generate and inspect the state dump file for the backend with PID23111:

-- Generate the state dump fileSELECT pg_diagdump(23111);-- Inspect crash_info directory and its contentsSELECT pg_ls_dir('crash_info');-- Read the contents of the state dump fileSELECT pg_read_file('crash_info/crash_1722943138419104_pid23111.state');

Prev Up Next
30.3. Separation of Duties between Privileged DBMS Users Home Part IV. Client Interfaces
pdfepub
Go to Postgres Pro Standard 17
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp