pgsql: Add assign_expr_collations() to CreatePolicy() and AlterPolicy()

From: Joe Conway <mail(at)joeconway(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add assign_expr_collations() to CreatePolicy() and AlterPolicy()
Date: 2015-07-11 21:20:36
Message-ID: E1ZE2CK-0005i8-2g@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add assign_expr_collations() to CreatePolicy() and AlterPolicy().

As noted by Noah Misch, CreatePolicy() and AlterPolicy() omit to call
assign_expr_collations() on the node trees. Fix the omission and add
his test case to the rowsecurity regression test.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/808ea8fc7bb259ddd810353719cac66e85a608c8

Modified Files
--------------
src/backend/commands/policy.c | 10 ++++++++++
src/test/regress/expected/rowsecurity.out | 21 +++++++++++++++++++++
src/test/regress/sql/rowsecurity.sql | 12 ++++++++++++
3 files changed, 43 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Joe Conway 2015-07-11 21:20:41 pgsql: Add assign_expr_collations() to CreatePolicy() and AlterPolicy()
Previous Message Heikki Linnakangas 2015-07-10 11:50:58 pgsql: Copy-edit the docs changes of OWNER TO CURRENT/SESSION_USER addi