From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kathleen Emerson <heavylivestock@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: pg_stat_all_tables.last_vacuum not always correct.
Date: Tue, 30 Oct 2018 11:31:51 -0400
Message-ID: <30798.1540913511@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKsJiwqZ699iBG2iVJjb5VOWqbGVe4jHA4v16qVXauZH4Y5DOA@mail.gmail.com>
References: <CAKsJiwqZ699iBG2iVJjb5VOWqbGVe4jHA4v16qVXauZH4Y5DOA@mail.gmail.com>
Kathleen Emerson <heavylivestock@gmail.com> writes:
> I ran `VACUUM VERBOSE` on 10-28. After the VACUUM completed, I ran the
> query
> `SELECT relname, last_vacuum FROM pg_stat_all_tables ORDER BY 2;`
> [ and saw old timestamps for some ]
> So, at least according to the VERBOSE logs, it seems like these tables
> _were_ vacuumed. Why the discrepancy?
The pg_stats mechanism is designed to drop messages when under sufficient
load, so if there was a whole lot going on besides the VACUUM, maybe
that would explain it.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, heavylivestock@gmail.com
Subject: Re: pg_stat_all_tables.last_vacuum not always correct.
In-Reply-To: <30798.1540913511@sss.pgh.pa.us>
References: <CAKsJiwqZ699iBG2iVJjb5VOWqbGVe4jHA4v16qVXauZH4Y5DOA@mail.gmail.com> <30798.1540913511@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox