Update relpages and reltuples estimates in stand-alone ANALYZE, even if
authorHeikki Linnakangas <heikki@enterprisedb.com>
Tue, 19 May 2009 08:30:00 +0000 (08:30 +0000)
committerHeikki Linnakangas <heikki@enterprisedb.com>
Tue, 19 May 2009 08:30:00 +0000 (08:30 +0000)
commitbeb6141fa1933e409521c6ea0dbe9f50d1c54d15
treec5d4044bfbec633cd62f09abf068bc3eab85c8c1
parenta2f4f39ae059f0bd677ba18eb7fe145dac98119f
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