Fix vac_update_relstats to ensure it always sends a relcache inval message,
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 8 Mar 2007 17:03:43 +0000 (17:03 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 8 Mar 2007 17:03:43 +0000 (17:03 +0000)
commit8cedf54b2c81f20caf3e8fae1e452d2592093e6d
tree8512f6a87b13869fba494fac08e561b8390fec81
parente79e3faa383625c7cec4bedc43355402042bbca1
Fix vac_update_relstats to ensure it always sends a relcache inval message,
even if none of the fields in the pg_class row change.  This behavior is
necessary to ensure other backends flush rd_targblock values that might
point to truncated-away pages.  We got this right pre-8.2 but it was broken
by overoptimistic change to not write out the pg_class row if unchanged.
Per report from Pavan Deolasee.
src/backend/commands/vacuum.c