Re: pl/pgsql enabled by default

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Re: pl/pgsql enabled by default
Дата
Msg-id 1115552373.683.30.camel@home
обсуждение исходный текст
Ответ на Re: pl/pgsql enabled by default  (Mike Mascari <mascarm@mascari.com>)
Список pgsql-hackers
> 2. Issue a query like:
> 
> SELECT *
> FROM view_of_salaries_based_on_current_user
> WHERE my_side_effect_function_that_inserts_into_a_temp_table(salary, 
> employee);

An SRF will guarantee an execution order and work for security purposes,
but getting your function with side effects to run early would be rather
challenging. Somehow you would need to make the planner think the
function is fairly selective without it actually being that way and the
only way that I'm aware of to get the planner to consider a functions
selectivity is to index it. But how do you index the function without
knowing all of the values?

-- 



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

Предыдущее
От: Devrim GUNDUZ
Дата:
Сообщение: Will new release require an initdb?
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: Patch for collation using ICU