pgsql: Clamp last_anl_tuples to n_live_tuples, in case we vacuum a table - Mailing list pgsql-committers

From alvherre@postgresql.org (Alvaro Herrera)
Subject pgsql: Clamp last_anl_tuples to n_live_tuples, in case we vacuum a table
Date
Msg-id 20060627034516.BBD329FABE7@postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/backend/postmaster:
        pgstat.c (r1.130 -> r1.131)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/pgstat.c.diff?r1=1.130&r2=1.131)

pgsql-committers by date:

Previous
From: momjian@postgresql.org (Bruce Momjian)
Date:
Subject: pgsql: Add INCLUDING CONSTRAINTS to CREATE TABLE LIKE.
Next
From: alvherre@postgresql.org (Alvaro Herrera)
Date:
Subject: pgsql: Clamp last_anl_tuples to n_live_tuples, in case we vacuum a table