pgsql: Fix typo in relcache's equalPolicy()

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix typo in relcache's equalPolicy()
Date: 2015-04-17 20:37:07
Message-ID: E1YjD0d-0002fu-FO@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ab6d1cd26ebfbfce275cd31af82814c0620e70a2

Modified Files
--------------
src/backend/utils/cache/relcache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2015-04-18 00:08:48 pgsql: pg_upgrade: binary_upgrade_create_empty_extension() is strict
Previous Message Alvaro Herrera 2015-04-17 02:40:24 pgsql: Add new target modulescheck in vcregress.pl