Re: more RLS oversights - Mailing list pgsql-hackers

From Joe Conway
Subject Re: more RLS oversights
Date
Msg-id 55B8F6CE.4030302@crunchydata.com
Whole thread Raw
In response to Re: more RLS oversights  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Responses Re: more RLS oversights  (Dean Rasheed <dean.a.rasheed@gmail.com>)
List pgsql-hackers
On 07/29/2015 02:41 AM, Dean Rasheed wrote:
> I don't think there is any point in adding the new function
> transformPolicyClause(), which is identical to transformWhereClause().
> You can just use transformWhereClause() with EXPR_KIND_POLICY. It's
> already used for lots of other expression kinds.

Yeah, I was debating that. Although I do think the name
transformWhereClause() is unfortunate. Maybe it ought to be renamed
transformBooleanExpr() or something similar?

> There are a couple of places in test_rls_hooks.c that also need updating.

Right -- thanks

> I think that check_agglevels_and_constraints() and
> transformWindowFuncCall() could be made to emit more targeted error
> messages for EXPR_KIND_POLICY, for example "aggregate functions are
> not allowed in policy USING and WITH CHECK expressions".

ok

Thanks for the review.

Joe





pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: upgrade failure from 9.5 to head
Next
From: Stephen Frost
Date:
Subject: Re: upgrade failure from 9.5 to head