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

Commitab6d1cd

Browse files
committed
Fix typo in relcache's equalPolicy()
The USING policies were not being checked for differences as the samepolicy was being passed in to both sides of the equal(). This couldresult in backends not realizing that a policy had been changed, ifnone of the other attributes had been changed.Fix by passing to equal() the policy1 and policy2 using quals forcomparison.No need to back-patch as this is not yet released. Noticed whiletesting changes to RLS proposed by Dean Rasheed.
1 parent4cb7d67 commitab6d1cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ equalPolicy(RowSecurityPolicy *policy1, RowSecurityPolicy *policy2)
887887
return false;
888888
}
889889

890-
if (!equal(policy1->qual,policy1->qual))
890+
if (!equal(policy1->qual,policy2->qual))
891891
return false;
892892
if (!equal(policy1->with_check_qual,policy2->with_check_qual))
893893
return false;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp