pgsql: Update relpages and reltuples estimates in stand-alone ANALYZE,

From: heikki(at)postgresql(dot)org (Heikki Linnakangas)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Update relpages and reltuples estimates in stand-alone ANALYZE,
Date: 2009-05-19 08:30:12
Message-ID: 20090519083012.801A275331D@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Update relpages and reltuples estimates in stand-alone ANALYZE, even if
there's no analyzable attributes or indexes. We also used to report 0 live
and dead tuples for such tables, which messed with autovacuum threshold
calculations.

This fixes bug #4812 reported by George Su. Backpatch back to 8.1.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
pgsql/src/backend/commands:
analyze.c (r1.114.2.1 -> r1.114.2.2)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/analyze.c?r1=1.114.2.1&r2=1.114.2.2)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2009-05-19 08:30:18 pgsql: Update relpages and reltuples estimates in stand-alone ANALYZE,
Previous Message Heikki Linnakangas 2009-05-19 08:30:01 pgsql: Update relpages and reltuples estimates in stand-alone ANALYZE,