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_xact_user_tables

Read PG 18 manual ↗

A transaction can also see its own statistics (not yet flushed out to the shared memory statistics) in the views pg_stat_xact_all_tables, pg_stat_xact_sys_tables, pg_stat_xact_user_tables, and pg_stat_xact_user_functions.

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

Columns 12

The selected manual identifies this view but does not enumerate its columns. The columns below come from the separately attributed catalog snapshot for this version.

ColumnTypeDescription / reference
relidoidOID of a table
schemanamenameName of the schema that this table is in
relnamenameName of this table
seq_scanbigintNumber of sequential scans initiated on this table This view reports counters for the current transaction.
seq_tup_readbigintNumber of live rows fetched by sequential scans This view reports counters for the current transaction.
idx_scanbigintNumber of index scans initiated on this table This view reports counters for the current transaction.
idx_tup_fetchbigintNumber of live rows fetched by index scans This view reports counters for the current transaction.
n_tup_insbigintTotal number of rows inserted This view reports counters for the current transaction.
n_tup_updbigintTotal number of rows updated. (This includes row updates counted in n_tup_hot_upd and n_tup_newpage_upd, and remaining non-HOT updates.) This view reports counters for the current transaction.
n_tup_delbigintTotal number of rows deleted This view reports counters for the current transaction.
n_tup_hot_updbigintNumber of rows HOT updated. These are updates where no successor versions are required in indexes. This view reports counters for the current transaction.
n_tup_newpage_updbigintNumber of rows updated where the successor version goes onto a new heap page, leaving behind an original version with a t_ctid field that points to a different heap page. These are always non-HOT updates. This view reports counters for the current transaction.
Column history across versions
Version history 3
  1. PG 14 → 15changed
  2. PG 9.1 → 9.2changed
  3. PG 9.0 → 9.1added

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