Re: more RLS oversights

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: more RLS oversights
Дата
Msg-id 55B92B54.8080002@crunchydata.com
обсуждение исходный текст
Ответ на Re: more RLS oversights  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Ответы Re: more RLS oversights  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Re: more RLS oversights  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список 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.


Ok -- I went back to using transformWhereClause. I'd still prefer to
change the name -- more than half the uses of the function are for other
than EXPR_KIND_WHERE -- but I don't feel that strongly about it.


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

done

> 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".

done

Unless there are other comments/objections, will commit this later today.

Joe


Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Qingqing Zhou
Дата:
Сообщение: Re: Division by zero in planner.c:grouping_planner()
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Planner debug views