From: Joe Conway <mail@joeconway.com>
To: pgsql-committers@postgresql.org
Subject: pgsql: Create new ParseExprKind for use by policy expressions.
Date: Wed, 29 Jul 2015 22:41:35 +0000
Message-ID: <E1ZKa2Z-0005eR-Ht@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Create new ParseExprKind for use by policy expressions.
Policy USING and WITH CHECK expressions were using EXPR_KIND_WHERE for
parse analysis, which results in inappropriate ERROR messages when
the expression contains unsupported constructs such as aggregates.
Create a new ParseExprKind called EXPR_KIND_POLICY and tailor the
related messages to fit.
Reported by Noah Misch. Reviewed by Dean Rasheed, Alvaro Herrera,
and Robert Haas. Back-patch to 9.5 where RLS was introduced.
Branch
------
REL9_5_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/43797ed42a7c0365c9143ad6efdc566ac9d93fd8
Modified Files
--------------
src/backend/commands/policy.c | 8 ++++----
src/backend/parser/parse_agg.c | 10 ++++++++++
src/backend/parser/parse_expr.c | 3 +++
src/include/parser/parse_node.h | 3 ++-
src/test/modules/test_rls_hooks/test_rls_hooks.c | 4 ++--
src/test/regress/expected/rowsecurity.out | 9 +++++++++
src/test/regress/sql/rowsecurity.sql | 9 +++++++++
7 files changed, 39 insertions(+), 7 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: mail@joeconway.com
Subject: Re: pgsql: Create new ParseExprKind for use by policy expressions.
In-Reply-To: <E1ZKa2Z-0005eR-Ht@gemulon.postgresql.org>
References: <E1ZKa2Z-0005eR-Ht@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox