Clamp last_anl_tuples to n_live_tuples, in case we vacuum a table without
authorAlvaro Herrera <[email protected]>
Tue, 27 Jun 2006 03:45:28 +0000 (03:45 +0000)
committerAlvaro Herrera <[email protected]>
Tue, 27 Jun 2006 03:45:28 +0000 (03:45 +0000)
commitfbc735787728dc7f8ef541eb00bea8da806973c0
tree57106ad04edea67fec1891027de165212903b848
parent5006ba4ee4305f3579ab6997b663fce70389a6c5
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.
src/backend/postmaster/pgstat.c