Clamp last_anl_tuples to n_live_tuples, in case we vacuum a table without

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 32ad0fc18311da9ec1f30f1444e3f97170e43e30
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2006-06-27T03:45:16Z
Releases: 8.2.0
Clamp last_anl_tuples to n_live_tuples, in case we vacuum a table without
analyzing, so that future analyze threshold calculations don't get confused.
Also, make sure we correctly track the decrease of live tuples cause by
deletes.

Per report from Dylan Hansen, patches by Tom Lane and me.

Files

PathChange+/−
src/backend/postmaster/pgstat.c modified +9 −2