Statistics collector

A subsystem which collects information about activity on the local server

The statistics collector is a subsystem which collects information about activity on the local server, such as table/index access and vacuum/analyze activity.

From PostgreSQL 15, the statistics collector is no longer a separate subsystem, and has been replaced by a purely in-memory implementation directly integrated into the core system.

Information gathered by the statistics collector is made available via the various pg_stat_* / pg_statio_* views.

Note that these kinds of statistics are specific to the local server and are not replicated. They should not be confused with the statistics on data collected by analyze operations and stored in pg_statistic et al, which are replicated.

Configuration

The following configuration parameters are relevant for the statistics collector:

Change history

Work-in-progress

Categories

Monitoring, Statistics / monitoring view

See also

statistics view