]> 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:12 +0000 (08:30 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 19 May 2009 08:30:12 +0000 (08:30 +0000)
commit8e4862b42261e4037c2c3fd8fb62a779efd93b12
treea49e60465071e6eb5c8448515b4ef44f8c6ce685
parent9497c7a744dd8798359ed8db89c8ed6b41e9be76
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