]> granicus.if.org Git - postgresql/commit
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)
commit8e010acb0d5f12cc49e40ba1f5f92e3692a3932f
treeb0922c47efe5249a947076d87d812bd1c91d4555
parent2b1abc8756e973a098943c255c3cbeb2568cfb91
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