Vaccum and analyze counters in pgstat

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Vaccum and analyze counters in pgstat
Date: 2010-08-20 12:45:56
Message-ID: AANLkTik7EUijOiswF45uyccPm3vMD0pnnWevDF2UqB9J@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Attached is a patch that adds columns to pg_stat_*_tables for number
of [auto]vacuum and [auto]analyze runs on a table, completing the
current one that just had the last time these ran. It's particularly
useful to see how much autovac is doing on the tables, but I included
the counts of regular vacuum and analyze as well for completeness.

Comments?

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

Attachment Content-Type Size
stat_vacuum_counters.patch application/octet-stream 11.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2010-08-20 12:54:40 Re: small smgrcreate cleanup patch
Previous Message Greg Stark 2010-08-20 12:45:08 Re: small smgrcreate cleanup patch