↑↓ 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 the PG 18 manual

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

Reading PG 18current·documented in 20 of 24 versions, 8.3 to 20

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

Columns 4

As listed in the PostgreSQL 18 manual.

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 6
  1. 16 → 17 changed
  2. 12 → 13 reworded
  3. 9.1 → 9.2 changed
  4. 9.0 → 9.1 changed
  5. 8.4 → 9.0 columns not listed
  6. 8.2 → 8.3 added

Definition snapshot: english-manuals:02741e530d66fd3b89a43c8d8d4… · English manual source