↑↓ select↵ open⌫ change scopeOpen full search

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

Wiki / Statistics & Metrics

pg_stat_activity.leader_pid

Process ID of the parallel group leader if this process is a parallel query worker, or process ID of the leader apply worker if this process is a parallel apply worker. NULL indicates that this process is a parallel group leader or leader apply worker, or does not participate in any parallel operation.

Reading PG 18·Select a recorded version

View
pg_stat_activity
Field
leader_pid
SQL type
integer
Units named in the field definition
Not specified
Reset observation
No stats_reset field is documented for this view
documented
true
field
leader_pid
manual path
/docs/18/monitoring-stats.html
signature
SELECT leader_pid FROM pg_catalog.pg_stat_activity;
source only
false
sql type
integer
units mentioned
Unknown
view
pg_stat_activity

Definition PG 18

Process ID of the parallel group leader if this process is a parallel query worker, or process ID of the leader apply worker if this process is a parallel apply worker. NULL indicates that this process is a parallel group leader or leader apply worker, or does not participate in any parallel operation.

Compare versions

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

Text language: en · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f