Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Category index616
pg_stat_all_tables.last_idx_scanThe time of the last index scan on this table, based on the most recent transaction stop time
pg_stat_all_tables
SELECT last_idx_scan FROM pg_catalog.pg_stat_all_tables;
View pg_stat_all_ta…
pg_stat_all_tables.last_seq_scanThe time of the last sequential scan on this table, based on the most recent transaction stop time
pg_stat_all_tables
SELECT last_seq_scan FROM pg_catalog.pg_stat_all_tables;
View pg_stat_a…
pg_stat_all_tables.last_vacuumLast time at which this table was manually vacuumed (not counting VACUUM FULL)
pg_stat_all_tables
SELECT last_vacuum FROM pg_catalog.pg_stat_all_tables;
View pg_stat_all_tables
Field last_v…
pg_stat_all_tables.n_dead_tupEstimated number of dead rows
pg_stat_all_tables
SELECT n_dead_tup FROM pg_catalog.pg_stat_all_tables;
View pg_stat_all_tables
Field n_dead_tup
SQL type bigint
Units named in the field defi…
pg_stat_all_tables.n_ins_since_vacuumEstimated number of rows inserted since this table was last vacuumed (not counting VACUUM FULL)
pg_stat_all_tables
Estimated number of rows inserted since this table was last vacuumed
SELEC…
pg_stat_all_tables.n_live_tupEstimated number of live rows
pg_stat_all_tables
SELECT n_live_tup FROM pg_catalog.pg_stat_all_tables;
View pg_stat_all_tables
Field n_live_tup
SQL type bigint
Units named in the field defi…
pg_stat_all_tables.n_mod_since_analyzeEstimated number of rows modified since this table was last analyzed
pg_stat_all_tables
SELECT n_mod_since_analyze FROM pg_catalog.pg_stat_all_tables;
View pg_stat_all_tables
Field n_mod_si…
pg_stat_all_tables.n_tup_delTotal number of rows deleted
pg_stat_all_tables
Number of rows deleted
SELECT n_tup_del FROM pg_catalog.pg_stat_all_tables;
View pg_stat_all_tables
Field n_tup_del
SQL type bigint
Units nam…
pg_stat_all_tables.n_tup_hot_updNumber of rows HOT updated. These are updates where no successor versions are required in indexes.
pg_stat_all_tables
Number of rows HOT updated (i.e., with no separate index update require…
pg_stat_all_tables.n_tup_insTotal number of rows inserted
pg_stat_all_tables
Number of rows inserted
SELECT n_tup_ins FROM pg_catalog.pg_stat_all_tables;
View pg_stat_all_tables
Field n_tup_ins
SQL type bigint
Units n…
pg_stat_all_tables.n_tup_newpage_updNumber 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 no…
pg_stat_all_tables.n_tup_updTotal number of rows updated. (This includes row updates counted in n_tup_hot_upd and n_tup_newpage_upd, and remaining non-HOT updates.)
pg_stat_all_tables
Number of rows updated (includes …
pg_stat_all_tables.relidOID of a table
pg_stat_all_tables
SELECT relid FROM pg_catalog.pg_stat_all_tables;
View pg_stat_all_tables
Field relid
SQL type oid
Units named in the field definition Not specified
Reset o…
pg_stat_all_tables.relnameName of this table
pg_stat_all_tables
SELECT relname FROM pg_catalog.pg_stat_all_tables;
View pg_stat_all_tables
Field relname
SQL type name
Units named in the field definition Not specifie…
pg_stat_all_tables.schemanameName of the schema that this table is in
pg_stat_all_tables
SELECT schemaname FROM pg_catalog.pg_stat_all_tables;
View pg_stat_all_tables
Field schemaname
SQL type name
Units named in the f…
pg_stat_all_tables.seq_scanNumber of sequential scans initiated on this table
pg_stat_all_tables
SELECT seq_scan FROM pg_catalog.pg_stat_all_tables;
View pg_stat_all_tables
Field seq_scan
SQL type bigint
Units named …
pg_stat_all_tables.seq_tup_readNumber of live rows fetched by sequential scans
pg_stat_all_tables
SELECT seq_tup_read FROM pg_catalog.pg_stat_all_tables;
View pg_stat_all_tables
Field seq_tup_read
SQL type bigint
Units n…
pg_stat_all_tables.stats_resetTime at which these statistics were last reset
pg_stat_all_tables
SELECT stats_reset FROM pg_catalog.pg_stat_all_tables;
View pg_stat_all_tables
Field stats_reset
SQL type timestamp with ti…
pg_stat_all_tables.total_analyze_timeTotal time this table has been manually analyzed, in milliseconds. (This includes the time spent sleeping due to cost-based delays.)
pg_stat_all_tables
SELECT total_analyze_time FROM pg_cat…
pg_stat_all_tables.total_autoanalyze_timeTotal time this table has been analyzed by the autovacuum daemon, in milliseconds. (This includes the time spent sleeping due to cost-based delays.)
pg_stat_all_tables
SELECT total_autoanal…
pg_stat_all_tables.total_autovacuum_timeTotal time this table has been vacuumed by the autovacuum daemon, in milliseconds. (This includes the time spent sleeping due to cost-based delays.)
pg_stat_all_tables
SELECT total_autovacu…
pg_stat_all_tables.total_vacuum_timeTotal time this table has been manually vacuumed, in milliseconds (not counting VACUUM FULL). (This includes the time spent sleeping due to cost-based delays.)
pg_stat_all_tables
SELECT tot…
pg_stat_all_tables.vacuum_countNumber of times this table has been manually vacuumed (not counting VACUUM FULL)
pg_stat_all_tables
SELECT vacuum_count FROM pg_catalog.pg_stat_all_tables;
View pg_stat_all_tables
Field vac…
pg_stat_archiver.archived_countNumber of WAL files that have been successfully archived
pg_stat_archiver
SELECT archived_count FROM pg_catalog.pg_stat_archiver;
View pg_stat_archiver
Field archived_count
SQL type bigint
…
pg_stat_archiver.failed_countNumber of failed attempts for archiving WAL files
pg_stat_archiver
SELECT failed_count FROM pg_catalog.pg_stat_archiver;
View pg_stat_archiver
Field failed_count
SQL type bigint
Units named…
pg_stat_archiver.last_archived_timeTime of the most recent successful archive operation
pg_stat_archiver
Time of the last successful archive operation
SELECT last_archived_time FROM pg_catalog.pg_stat_archiver;
View pg_stat_…
pg_stat_archiver.last_archived_walName of the WAL file most recently successfully archived
pg_stat_archiver
Name of the last WAL file successfully archived
SELECT last_archived_wal FROM pg_catalog.pg_stat_archiver;
View pg_…
pg_stat_archiver.last_failed_timeTime of the most recent failed archival operation
pg_stat_archiver
Time of the last failed archival operation
SELECT last_failed_time FROM pg_catalog.pg_stat_archiver;
View pg_stat_archiver…
pg_stat_archiver.last_failed_walName of the WAL file of the most recent failed archival operation
pg_stat_archiver
Name of the WAL file of the last failed archival operation
SELECT last_failed_wal FROM pg_catalog.pg_stat_…
pg_stat_archiver.stats_resetTime at which these statistics were last reset
pg_stat_archiver
SELECT stats_reset FROM pg_catalog.pg_stat_archiver;
View pg_stat_archiver
Field stats_reset
SQL type timestamp with time zon…
pg_stat_autovacuum_scores.analyze_scoreAnalyze component score. Scores greater than autovacuum_analyze_score_weight indicate that autovacuum would analyze the table (unless autovacuum is disabled).
pg_stat_autovacuum_scores
SELE…
pg_stat_autovacuum_scores.do_analyzeWhether autovacuum would analyze the table. Note that even if the component scores indicate that autovacuum would analyze the table, this may be false if autovacuum is disabled.
pg_stat_aut…
pg_stat_autovacuum_scores.do_vacuumWhether autovacuum would vacuum the table. Note that even if the component scores indicate that autovacuum would vacuum the table, this may be false if autovacuum is disabled.
pg_stat_autov…
pg_stat_autovacuum_scores.for_wraparoundWhether autovacuum would vacuum the table for wraparound prevention.
pg_stat_autovacuum_scores
SELECT for_wraparound FROM pg_catalog.pg_stat_autovacuum_scores;
View pg_stat_autovacuum_score…
pg_stat_autovacuum_scores.mxid_scoreMultixact ID age component score. Scores greater than autovacuum_multixact_freeze_score_weight indicate that autovacuum would vacuum the table for multixact ID wraparound prevention.
pg_sta…
pg_stat_autovacuum_scores.relidOid of the table.
pg_stat_autovacuum_scores
SELECT relid FROM pg_catalog.pg_stat_autovacuum_scores;
View pg_stat_autovacuum_scores
Field relid
SQL type oid
Units named in the field definiti…
pg_stat_autovacuum_scores.relnameName of the table.
pg_stat_autovacuum_scores
SELECT relname FROM pg_catalog.pg_stat_autovacuum_scores;
View pg_stat_autovacuum_scores
Field relname
SQL type name
Units named in the field de…
pg_stat_autovacuum_scores.schemanameName of the schema that the table is in.
pg_stat_autovacuum_scores
SELECT schemaname FROM pg_catalog.pg_stat_autovacuum_scores;
View pg_stat_autovacuum_scores
Field schemaname
SQL type name…
pg_stat_autovacuum_scores.scoreMaximum value of all component scores. This is the value that autovacuum would use to sort the list of tables to process.
pg_stat_autovacuum_scores
SELECT score FROM pg_catalog.pg_stat_auto…
pg_stat_autovacuum_scores.vacuum_insert_scoreVacuum insert component score. Scores greater than autovacuum_vacuum_insert_score_weight indicate that autovacuum would vacuum the table (unless autovacuum is disabled).
pg_stat_autovacuum_…
More results
Find definitions in the PostgreSQL manuals, reference library, and extension catalogue.
Searching every version by default. Manual pages are indexed for PostgreSQL 10–20; the reference library and extension catalogue are not version-bound.
all: every version pg17: one version ex: extensions only ↑↓ select ↵ open