Re: Is there a way around function search_path killing SQL function inlining?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Is there a way around function search_path killing SQL function inlining?
Дата
Msg-id 10648.1471029747@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Is there a way around function search_path killing SQL function inlining?  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Is there a way around function search_path killing SQL function inlining?  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> Let's introduce a new variant of SET that only affects the lexical
> scope of the function to which it is attached, and then do what you
> said.  That would be full of win, because actually I think in nearly
> every case that's the behavior people actually want.

Hm.  I think that sounds a lot easier than it actually is.  As an example,
this would mean that we'd want such a search_path setting to apply during
parse analysis of a function's body, but not during planning, because it
should not apply during inlining or const-folding of another function.
On the other hand, if someone tried to "SET enable_seqscan = off" with
this new scope (a highly reasonable thing to do), that certainly should
apply during planning.

It might be practical to make it work, but it will be ticklish to
get the scope of the settings to be non-surprising.
        regards, tom lane



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Parallel tuplesort, partitioning, merging, and the future
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Is there a way around function search_path killing SQL function inlining?