pgsql: Fix oversight in ALTER TABLE ENABLE/DISABLE RULE patch: the new

Lists: pgsql-committers
From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix oversight in ALTER TABLE ENABLE/DISABLE RULE patch: the new
Date: 2008-12-30 03:59:19
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-committers

Log Message:
-----------
Fix oversight in ALTER TABLE ENABLE/DISABLE RULE patch: the new enabled
field needs to be included in equalRuleLocks() comparisons, else updates
will fail to propagate into relcache entries when they have positive
reference count (ie someone is using the relcache entry).
Per report from Alex Hunsaker.

Modified Files:
--------------
pgsql/src/backend/utils/cache:
relcache.c (r1.278 -> r1.279)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/cache/relcache.c?r1=1.278&r2=1.279)