pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Create new ParseExprKind for use by policy expressions. 2+ messages / 1 participants [nested] [flat]
* pgsql: Create new ParseExprKind for use by policy expressions. @ 2015-07-29 22:41 Joe Conway <mail@joeconway.com> 0 siblings, 0 replies; 2+ messages in thread From: Joe Conway @ 2015-07-29 22:41 UTC (permalink / raw) To: pgsql-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 ------ master Details ------- http://git.postgresql.org/pg/commitdiff/632cd9f892119858bc5b617bb60c0377a8a2ed13 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 ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Create new ParseExprKind for use by policy expressions. @ 2015-07-29 22:41 Joe Conway <mail@joeconway.com> 0 siblings, 0 replies; 2+ messages in thread From: Joe Conway @ 2015-07-29 22:41 UTC (permalink / raw) To: pgsql-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 ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2015-07-29 22:41 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-07-29 22:41 pgsql: Create new ParseExprKind for use by policy expressions. Joe Conway <mail@joeconway.com> 2015-07-29 22:41 pgsql: Create new ParseExprKind for use by policy expressions. Joe Conway <mail@joeconway.com>
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