Create new ParseExprKind for use by policy expressions.

Joe Conway <mail@joeconway.com>

Commit: 43797ed42a7c0365c9143ad6efdc566ac9d93fd8
Author: Joe Conway <mail@joeconway.com>
Date: 2015-07-29T22:41:00Z
Releases: 9.5.0
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.

Files