Re: RFC: Restructuring pg_aggregate

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: RFC: Restructuring pg_aggregate
Дата
Msg-id
Pine.LNX.4.30.0204111754100.690-100000@peter.localdomain
Ответ на
Список
Дерево обсуждения
Re: RFC: Restructuring pg_aggregate Dave Page <dpage@vale-housing.co.uk>
Tom Lane writes:

> I was slightly bemused to notice that your implementation of it for
> regular functions tests the privilege at plan startup but doesn't
> actually throw the error until the function is called.  What's the
> point of that? Seems like we might as well throw the error in
> init_fcache and not bother with storing a boolean.

Yeah, it's a bit funny.  I wanted to keep the fcache code from doing
anything not to do with caching, and I wanted to keep the permission check
in the executor, like it is for tables.

There were a couple of cases, which I have not fully explored yet, for
which this seemed like a good idea, such as some functions being in the
plan but not being executed, or the permission check being avoided for
some functions (e.g., cast functions).

-- 
Peter Eisentraut   peter_e@gmx.net


В списке pgsql-hackers по дате отправления
От: Bruce Momjian
Дата:
Сообщение: Re: numeric/decimal docs bug?
От: Tom Lane
Дата:
FAQ