select open change scope Open full search

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

SYSTEM CATALOGS / STATISTICS VIEWS

The pg_stat_kind_info view contains one row for each registered statistics kind, including both built-in and custom kinds.

Development snapshot. These definitions may change before release.

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

Columns 7

ColumnTypeDescription / reference
idintegerNumeric identifier of the statistics kind.
nametextName of the statistics kind.
builtinbooleanTrue if this is a built-in statistics kind, false if it was registered by an extension.
fixed_amountbooleanTrue if this kind tracks a fixed amount of data (a single, statically allocated entry), false if it tracks a variable number of entries keyed by object identifier.
accessed_across_databasesbooleanTrue if entries of this kind are accessed across databases (cluster-wide statistics), false if they are scoped to a single database.
write_to_filebooleanTrue if entries of this kind are persisted to the statistics file at shutdown and reloaded on startup, false if they are kept only in shared memory.
entry_countbigintNumber of tracked entries for this kind. For variable-numbered kinds, this is the number of objects currently tracked. NULL for fixed-sized statistics kinds, or if the kind does not track entry counts.
Column history across versions
Version history 1
  1. PG 19 → 20added

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