Re: plpgsql function confusing behaviour

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: plpgsql function confusing behaviour
Дата
Msg-id CAHyXU0z6yGeyKiOeTbm=e1EgWk4fgu5xbTUcCfJQ9WnU6bNSsw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: plpgsql function confusing behaviour  (Shianmiin <Shianmiin@gmail.com>)
Список pgsql-general
On Tue, Jul 12, 2011 at 12:10 PM, Shianmiin <Shianmiin@gmail.com> wrote:
>
> Merlin Moncure-2 wrote:
>>
>> One proposed solution is to cache plpgsql plans around the search path.
>>
>
> I like the proposed solution, since search_path plays a part when generating
> plpgsql plan, it make sense to be part of the cache.
>
>
> Merlin Moncure-2 wrote:
>>
>> *) use sql functions for portions that float across schemas
>>
>
> Just to clarify, does this mean the sql functions doesn't cache plans like
> plpgsql functions do?

correct. so you could wrap schema dependent bits inside set returning
sql functions.

merlin

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

Предыдущее
От: Willy-Bas Loos
Дата:
Сообщение: Re: dirty read from plpgsql
Следующее
От: Lars Kanis
Дата:
Сообщение: Using LDAP roles in PostgreSQL