File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 fsyncs,
1616 fsync_time,
1717 reuses,
18- evictions
18+ evictions,
19+ stats_reset
1920FROM
2021 pg_stat_io
2122WHERE
Original file line number Diff line number Diff line change 1- /* Dead rows and whether an automatic vacuum is expected to be triggered */
1+ /* Dead rows, new inserts since last VACUUM and whether an automatic vacuum is expected to be triggered */
22
33WITH table_opts AS (
44 SELECT
@@ -34,8 +34,10 @@ WITH table_opts AS (
3434SELECT
3535 vacuum_settings .nspname AS schema,
3636 vacuum_settings .relname AS table,
37- to_char(psut .last_vacuum , ' YYYY-MM-DD HH24:MI' ) AS last_vacuum,
37+ to_char(psut .last_vacuum , ' YYYY-MM-DD HH24:MI' ) AS last_manual_vacuum,
38+ to_char(psut .vacuum_count , ' 9G999G999G999' ) AS manual_vacuum_count,
3839 to_char(psut .last_autovacuum , ' YYYY-MM-DD HH24:MI' ) AS last_autovacuum,
40+ to_char(psut .autovacuum_count , ' 9G999G999G999' ) AS autovacuum_count,
3941 to_char(pg_class .reltuples , ' 9G999G999G999' ) AS rowcount,
4042 to_char(psut .n_dead_tup , ' 9G999G999G999' ) AS dead_rowcount,
4143 to_char(
You can’t perform that action at this time.
0 commit comments