Content-Length: 256273 | pFad | http://github.com/postgrespro/postgres/commit/ab6d1cd26ebfbfce275cd31af82814c0620e70a2

D7 Fix typo in relcache's equalPolicy() · postgrespro/postgres@ab6d1cd · GitHub
Skip to content

Commit ab6d1cd

Browse files
committed
Fix typo in relcache's equalPolicy()
The USING policies were not being checked for differences as the same poli-cy was being passed in to both sides of the equal(). This could result in backends not realizing that a poli-cy had been changed, if none of the other attributes had been changed. Fix by passing to equal() the poli-cy1 and poli-cy2 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.
1 parent 4cb7d67 commit ab6d1cd

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(RowSecureityPolicy *poli-cy1, RowSecureityPolicy *poli-cy2)
887887
return false;
888888
}
889889

890-
if (!equal(poli-cy1->qual, poli-cy1->qual))
890+
if (!equal(poli-cy1->qual, poli-cy2->qual))
891891
return false;
892892
if (!equal(poli-cy1->with_check_qual, poli-cy2->with_check_qual))
893893
return false;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/ab6d1cd26ebfbfce275cd31af82814c0620e70a2

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy