]> 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:00 +0000 (08:30 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 19 May 2009 08:30:00 +0000 (08:30 +0000)
commit9ca99cda21a7eeb4bd975c811e7bcc6584255e1b
tree56c8a3dd17589c31d2f663e8f83461950423cc51
parent7280fab7173865f04b5cc635b0277501a18e6673
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