Fix typo in relcache's equalPolicy()
authorStephen Frost <sfrost@snowman.net>
Fri, 17 Apr 2015 20:37:11 +0000 (16:37 -0400)
committerStephen Frost <sfrost@snowman.net>
Fri, 17 Apr 2015 20:37:11 +0000 (16:37 -0400)
commitab6d1cd26ebfbfce275cd31af82814c0620e70a2
tree9d371a552e4ceb2223053bbe98e46c183173735b
parent4cb7d671fddc8855c8def2de51fb23df1c8ac0af
Fix typo in relcache's equalPolicy()

The USING policies were not being checked for differences as the same
policy was being passed in to both sides of the equal().  This could
result in backends not realizing that a policy had been changed, if
none of the other attributes had been changed.

Fix by passing to equal() the policy1 and policy2 using quals for
comparison.

No need to back-patch as this is not yet released.  Noticed while
testing changes to RLS proposed by Dean Rasheed.
src/backend/utils/cache/relcache.c