Re: Are stored procedures always kept in memory?

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: Are stored procedures always kept in memory?
Дата
Msg-id CAFj8pRBL2-nYVXdvcFzSB85GzjbyEmf572PTtwcMyBsg-nMi2w@mail.gmail.com
обсуждение исходный текст
Ответ на Are stored procedures always kept in memory?  (Roman Golis <rgolis@aps-holding.com>)
Список pgsql-general
Hello

>
>
> Now my questions is: Are the stored functions (both plpgsql and plain sql
> functions) kept always in a memory? Or they are stored similarly like
> tables, on the disk, reading them into memory when called and possibly
> release them from memory, if memory is needed for something else?

procedures living in pg_proc table. Before call procedure is loaded,
compiled (to abstract syntax tree) and compiled code (tree) is stored
to session cache. Cache is released after logout or function's update.

Regards

Pavel Stehule


>
>
>
> Thanks for reply.
>
>
>
> R.G.
>
>
>
> ________________________________
> Disclaimer: http://www.aps-holding.com/disclaimer.html

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: warnings about invalid "search_path"
Следующее
От: "Albe Laurenz"
Дата:
Сообщение: Re: warnings about invalid "search_path"