Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1b1b0ac

Browse files
committed
Fix oversight in ALTER TABLE ENABLE/DISABLE RULE patch: the new enabled
field needs to be included in equalRuleLocks() comparisons, else updateswill fail to propagate into relcache entries when they have positivereference count (ie someone is using the relcache entry).Per report from Alex Hunsaker.
1 parent2c38b8c commit1b1b0ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/backend/utils/cache/relcache.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/cache/relcache.c,v 1.278 2008/12/03 13:05:22 heikki Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/cache/relcache.c,v 1.279 2008/12/30 03:59:19 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -777,6 +777,8 @@ equalRuleLocks(RuleLock *rlock1, RuleLock *rlock2)
777777
return false;
778778
if (rule1->attrno!=rule2->attrno)
779779
return false;
780+
if (rule1->enabled!=rule2->enabled)
781+
return false;
780782
if (rule1->isInstead!=rule2->isInstead)
781783
return false;
782784
if (!equal(rule1->qual,rule2->qual))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp