OSDN Git Service

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:19 +0000 (03:59 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 30 Dec 2008 03:59:19 +0000 (03:59 +0000)
commit1b1b0ac8d027044726fc09090a6112eb63c12ac4
tree0a8b741c69eaef6c65cf102afcdef8bb65c2cd37
parent2c38b8c71559f6c5c45de39f890357fc99d49d11
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