Add last_vacuum_index_scans in pg_stat_all_tables - Mailing list pgsql-hackers

From Ken Kato
Subject Add last_vacuum_index_scans in pg_stat_all_tables
Date
Msg-id ce4a6ee93d78e2c4dafe4c1e515b342b@oss.nttdata.com
Whole thread Raw
Responses Re: Add last_vacuum_index_scans in pg_stat_all_tables
List pgsql-hackers
Hi hackers,

I think having number of index scans of the last vacuum in 
pg_stat_all_tables can be helpful. This value shows how efficiently 
vacuums have performed and can be an indicator to increase 
maintenance_work_mem.

It was proposed previously[1], but it was not accepted due to the 
limitation of stats collector. Statistics are now stored in shared 
memory, so we got more rooms to store statistics. I think this 
statistics is still valuable for some people, so I am proposing this 
again.

Best wishes,

-- 
Ken Kato
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION

[1] 
https://www.postgresql.org/message-id/20171010.192616.108347483.horiguchi.kyotaro%40lab.ntt.co.jp
Attachment

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Emit extra debug message when executing extension script.
Next
From: Alvaro Herrera
Date:
Subject: Re: Using PQexecQuery in pipeline mode produces unexpected Close messages