Fix oversight in ALTER TABLE ENABLE/DISABLE RULE patch: the new enabled
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 30 Dec 2008 03:59:28 +0000 (03:59 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 30 Dec 2008 03:59:28 +0000 (03:59 +0000)
commit1280bb93ccb55c894c3e06836b04e7915e4e3603
treeedf12a83d964759cb71c608d60fd4e9b1dec75c2
parenta0e8a9fa2498b7eb67a9b7ee83ee6591e951ca8d
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.
src/backend/utils/cache/relcache.c