pgsql: Fix vac_update_relstats to ensure it always sends a relcache

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix vac_update_relstats to ensure it always sends a relcache
Date: 2007-03-08 17:03:32
Message-ID: 20070308170332.B22359FBB48@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/src/backend/commands:
vacuum.c (r1.346 -> r1.347)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/vacuum.c.diff?r1=1.346&r2=1.347)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2007-03-08 17:03:43 pgsql: Fix vac_update_relstats to ensure it always sends a relcache
Previous Message Teodor Sigaev 2007-03-07 21:25:18 pgsql: Athough cube is a varlena type, nowhere was a detoasting of