pg_stat_xact_user_tables

A statistics view showing statistics about accesses to each user table during the current transaction

pg_stat_xact_user_tables is a statistics view showing statistics about accesses to each user table in the current database during the current transaction.

pg_stat_xact_user_tables was added in PostgreSQL 9.1.

Definition by PostgreSQL version

pg_stat_xact_user_tables (PostgreSQL 15)

       View "pg_catalog.pg_stat_xact_user_tables"
    Column     |  Type  | Collation | Nullable | Default 
---------------+--------+-----------+----------+---------
 relid         | oid    |           |          | 
 schemaname    | name   |           |          | 
 relname       | name   |           |          | 
 seq_scan      | bigint |           |          | 
 seq_tup_read  | bigint |           |          | 
 idx_scan      | bigint |           |          | 
 idx_tup_fetch | bigint |           |          | 
 n_tup_ins     | bigint |           |          | 
 n_tup_upd     | bigint |           |          | 
 n_tup_del     | bigint |           |          | 
 n_tup_hot_upd | bigint |           |          |
    

Documentation: pg_stat_xact_user_tables

pg_stat_xact_user_tables (PostgreSQL 14)

       View "pg_catalog.pg_stat_xact_user_tables"
    Column     |  Type  | Collation | Nullable | Default 
---------------+--------+-----------+----------+---------
 relid         | oid    |           |          | 
 schemaname    | name   |           |          | 
 relname       | name   |           |          | 
 seq_scan      | bigint |           |          | 
 seq_tup_read  | bigint |           |          | 
 idx_scan      | bigint |           |          | 
 idx_tup_fetch | bigint |           |          | 
 n_tup_ins     | bigint |           |          | 
 n_tup_upd     | bigint |           |          | 
 n_tup_del     | bigint |           |          | 
 n_tup_hot_upd | bigint |           |          |
    

Documentation: pg_stat_xact_user_tables

pg_stat_xact_user_tables (PostgreSQL 13)

       View "pg_catalog.pg_stat_xact_user_tables"
    Column     |  Type  | Collation | Nullable | Default 
---------------+--------+-----------+----------+---------
 relid         | oid    |           |          | 
 schemaname    | name   |           |          | 
 relname       | name   |           |          | 
 seq_scan      | bigint |           |          | 
 seq_tup_read  | bigint |           |          | 
 idx_scan      | bigint |           |          | 
 idx_tup_fetch | bigint |           |          | 
 n_tup_ins     | bigint |           |          | 
 n_tup_upd     | bigint |           |          | 
 n_tup_del     | bigint |           |          | 
 n_tup_hot_upd | bigint |           |          |
    

Documentation: pg_stat_xact_user_tables

pg_stat_xact_user_tables (PostgreSQL 12)

       View "pg_catalog.pg_stat_xact_user_tables"
    Column     |  Type  | Collation | Nullable | Default 
---------------+--------+-----------+----------+---------
 relid         | oid    |           |          | 
 schemaname    | name   |           |          | 
 relname       | name   |           |          | 
 seq_scan      | bigint |           |          | 
 seq_tup_read  | bigint |           |          | 
 idx_scan      | bigint |           |          | 
 idx_tup_fetch | bigint |           |          | 
 n_tup_ins     | bigint |           |          | 
 n_tup_upd     | bigint |           |          | 
 n_tup_del     | bigint |           |          | 
 n_tup_hot_upd | bigint |           |          |
    

Documentation: pg_stat_xact_user_tables

pg_stat_xact_user_tables (PostgreSQL 11)

       View "pg_catalog.pg_stat_xact_user_tables"
    Column     |  Type  | Collation | Nullable | Default 
---------------+--------+-----------+----------+---------
 relid         | oid    |           |          | 
 schemaname    | name   |           |          | 
 relname       | name   |           |          | 
 seq_scan      | bigint |           |          | 
 seq_tup_read  | bigint |           |          | 
 idx_scan      | bigint |           |          | 
 idx_tup_fetch | bigint |           |          | 
 n_tup_ins     | bigint |           |          | 
 n_tup_upd     | bigint |           |          | 
 n_tup_del     | bigint |           |          | 
 n_tup_hot_upd | bigint |           |          |
    

Documentation: pg_stat_xact_user_tables

pg_stat_xact_user_tables (PostgreSQL 10)

       View "pg_catalog.pg_stat_xact_user_tables"
    Column     |  Type  | Collation | Nullable | Default 
---------------+--------+-----------+----------+---------
 relid         | oid    |           |          | 
 schemaname    | name   |           |          | 
 relname       | name   |           |          | 
 seq_scan      | bigint |           |          | 
 seq_tup_read  | bigint |           |          | 
 idx_scan      | bigint |           |          | 
 idx_tup_fetch | bigint |           |          | 
 n_tup_ins     | bigint |           |          | 
 n_tup_upd     | bigint |           |          | 
 n_tup_del     | bigint |           |          | 
 n_tup_hot_upd | bigint |           |          |
    

Documentation: pg_stat_xact_user_tables

pg_stat_xact_user_tables (PostgreSQL 9.6)

View "pg_catalog.pg_stat_xact_user_tables"
    Column     |  Type  | Modifiers 
---------------+--------+-----------
 relid         | oid    | 
 schemaname    | name   | 
 relname       | name   | 
 seq_scan      | bigint | 
 seq_tup_read  | bigint | 
 idx_scan      | bigint | 
 idx_tup_fetch | bigint | 
 n_tup_ins     | bigint | 
 n_tup_upd     | bigint | 
 n_tup_del     | bigint | 
 n_tup_hot_upd | bigint |
    

Documentation: pg_stat_xact_user_tables

pg_stat_xact_user_tables (PostgreSQL 9.5)

View "pg_catalog.pg_stat_xact_user_tables"
    Column     |  Type  | Modifiers 
---------------+--------+-----------
 relid         | oid    | 
 schemaname    | name   | 
 relname       | name   | 
 seq_scan      | bigint | 
 seq_tup_read  | bigint | 
 idx_scan      | bigint | 
 idx_tup_fetch | bigint | 
 n_tup_ins     | bigint | 
 n_tup_upd     | bigint | 
 n_tup_del     | bigint | 
 n_tup_hot_upd | bigint |
    

Documentation: pg_stat_xact_user_tables

pg_stat_xact_user_tables (PostgreSQL 9.4)

View "pg_catalog.pg_stat_xact_user_tables"
    Column     |  Type  | Modifiers 
---------------+--------+-----------
 relid         | oid    | 
 schemaname    | name   | 
 relname       | name   | 
 seq_scan      | bigint | 
 seq_tup_read  | bigint | 
 idx_scan      | bigint | 
 idx_tup_fetch | bigint | 
 n_tup_ins     | bigint | 
 n_tup_upd     | bigint | 
 n_tup_del     | bigint | 
 n_tup_hot_upd | bigint |
    

Documentation: pg_stat_xact_user_tables

pg_stat_xact_user_tables (PostgreSQL 9.3)

View "pg_catalog.pg_stat_xact_user_tables"
    Column     |  Type  | Modifiers 
---------------+--------+-----------
 relid         | oid    | 
 schemaname    | name   | 
 relname       | name   | 
 seq_scan      | bigint | 
 seq_tup_read  | bigint | 
 idx_scan      | bigint | 
 idx_tup_fetch | bigint | 
 n_tup_ins     | bigint | 
 n_tup_upd     | bigint | 
 n_tup_del     | bigint | 
 n_tup_hot_upd | bigint |
    

Documentation: pg_stat_xact_user_tables

pg_stat_xact_user_tables (PostgreSQL 9.2)

View "pg_catalog.pg_stat_xact_user_tables"
    Column     |  Type  | Modifiers 
---------------+--------+-----------
 relid         | oid    | 
 schemaname    | name   | 
 relname       | name   | 
 seq_scan      | bigint | 
 seq_tup_read  | bigint | 
 idx_scan      | bigint | 
 idx_tup_fetch | bigint | 
 n_tup_ins     | bigint | 
 n_tup_upd     | bigint | 
 n_tup_del     | bigint | 
 n_tup_hot_upd | bigint |
    

Documentation: pg_stat_xact_user_tables

pg_stat_xact_user_tables (PostgreSQL 9.1)

View "pg_catalog.pg_stat_xact_user_tables"
    Column     |  Type  | Modifiers 
---------------+--------+-----------
 relid         | oid    | 
 schemaname    | name   | 
 relname       | name   | 
 seq_scan      | bigint | 
 seq_tup_read  | bigint | 
 idx_scan      | bigint | 
 idx_tup_fetch | bigint | 
 n_tup_ins     | bigint | 
 n_tup_upd     | bigint | 
 n_tup_del     | bigint | 
 n_tup_hot_upd | bigint |
    

Documentation: pg_stat_xact_user_tables

Change history

Categories

Statistics / monitoring view

See also

pg_stat_all_tables, pg_stat_sys_tables, pg_stat_user_tables, pg_stat_xact_all_tables, pg_stat_xact_sys_tables, pg_statio_all_tables, pg_statio_sys_tables, pg_statio_user_tables