]> granicus.if.org Git - postgresql/commit
Update relpages and reltuples estimates in stand-alone ANALYZE, even if
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 19 May 2009 08:30:24 +0000 (08:30 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 19 May 2009 08:30:24 +0000 (08:30 +0000)
commit18b185cdf0aa478c49ddabcf1eb78dbb66ccb9c9
tree4927d5a5e82020f984f67a8faa2cb77c2c73780e
parent5379bf74d79ba7a468923f46ee3b8fabde01afcd
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.
src/backend/commands/analyze.c