select open change scope Open full search

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

SYSTEM CATALOGS / STATISTICS VIEWS

pg_stat_bgwriter

Read PG 18 manual ↗

The pg_stat_bgwriter view will always have a single row, containing data about the background writer of the cluster.

Kind
Statistics views
Columns in this snapshot
4
Definition source
English manual

Columns 4

ColumnTypeDescription / reference
buffers_cleanbigintNumber of buffers written by the background writer
maxwritten_cleanbigintNumber of times the background writer stopped a cleaning scan because it had written too many buffers
buffers_allocbigintNumber of buffers allocated
stats_resettimestamp with time zoneTime at which these statistics were last reset
Column history across versions
Version history 9
  1. PG 16 → 17changed
  2. PG 12 → 13changed
  3. PG 11 → 12changed
  4. PG 9.6 → 10changed
  5. PG 9.5 → 9.6changed
  6. PG 9.4 → 9.5changed
  7. PG 9.3 → 9.4changed
  8. PG 9.1 → 9.2changed
  9. PG 9.0 → 9.1changed

Definition snapshot: english-manuals:a43f67b279d1d73d40aca5125c2… · English manual source