]> granicus.if.org Git - postgresql/commit
Remove pgstat's discrimination against MsgVacuum and MsgAnalyze messages.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 4 Sep 2009 22:32:33 +0000 (22:32 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 4 Sep 2009 22:32:33 +0000 (22:32 +0000)
commit47ef623c0bd35b90bb7861c036ccf45a86feaae8
treec35827fd167e8b62158574b58cd8267883e990c0
parent7be39bb0be87a2fe6ea64c9d48130b78412968a8
Remove pgstat's discrimination against MsgVacuum and MsgAnalyze messages.

Formerly, these message types would be discarded unless there was already
a stats hash table entry for the target table.  However, the intent of
saving hash table space for unused tables was subverted by the fact that
the physical I/O done by the vacuum or analyze would result in an immediately
following tabstat message, which would create the hash table entry anyway.
All that we had left was surprising loss of statistical data, as in a recent
complaint from Jaime Casanova.

It seems unlikely that a real database would have many tables that go totally
untouched over the long haul, so the consensus is that this "optimization"
serves little purpose anyhow.  Remove it, and just create the hash table
entry on demand in all cases.
src/backend/postmaster/pgstat.c