Re: PLpgSQL variables persistance between several functions calls

Поиск
Список
Период
Сортировка
От Viktor Bojović
Тема Re: PLpgSQL variables persistance between several functions calls
Дата
Msg-id BANLkTinjBmTvgbpDXvb8y1RBTLrMfeE5eQ@mail.gmail.com
обсуждение исходный текст
Ответ на PLpgSQL variables persistance between several functions calls  ("Charles N. Charotti" <ccharotti@yahoo.com>)
Список pgsql-sql
the best way is to put all calls into one function and store values to variables..

if that is not suitable you can try the way (which im not sure if anyone uses) and it is to store values to sequences if value type is integer.
for other formats you will have to do conversions.
but im not sure if sequence values are stored in database or in memory.
that way will make your results visible to all sessions.


On Mon, May 2, 2011 at 11:43 PM, Charles N. Charotti <ccharotti@yahoo.com> wrote:
Hello everybody !

I want to know if I could share PLpgSQL variables between different functions and within different calls just using memory (not tables or other methods).

If it is really possible ?

Thanks in advance,

Chuck



--
---------------------------------------
Viktor Bojović
---------------------------------------
Wherever I go, Murphy goes with me

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

Предыдущее
От: Willy-Bas Loos
Дата:
Сообщение: Re: PLpgSQL variables persistance between several functions calls
Следующее
От: Grzegorz Szpetkowski
Дата:
Сообщение: Re: BINARY and BINARY VARYING datatypes in PostgreSQL