↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / System Information Functions And Operators

pg_blocking_pids

Read the PG 18 manual

Returns an array of the process ID(s) of the sessions that are blocking the server process with the specified process ID from acquiring a lock, or an empty array if there is no such server process or it is not blocked.

Reading PG 18current·documented in 12 of 27 versions, 9.6 to 20

Signatures & examples

pg_blocking_pids ( integer ) → integer[]
Returns an array of the process ID(s) of the sessions that are blocking the server process with the specified process ID from acquiring a lock, or an empty array if there is no such server process or it is not blocked.
Version history 3
  1. 12 → 13 changed
  2. 9.6 → 10 changed
  3. 9.5 → 9.6 added

Definition snapshot: b7bd9cda · English manual source