Re: PLpgSQL variables persistance between several functions calls - Mailing list pgsql-sql

From Viktor Bojović
Subject Re: PLpgSQL variables persistance between several functions calls
Date
Msg-id BANLkTinjBmTvgbpDXvb8y1RBTLrMfeE5eQ@mail.gmail.com
Whole thread Raw
In response to PLpgSQL variables persistance between several functions calls  ("Charles N. Charotti" <ccharotti@yahoo.com>)
List 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 by date:

Previous
From: Willy-Bas Loos
Date:
Subject: Re: PLpgSQL variables persistance between several functions calls
Next
From: Grzegorz Szpetkowski
Date:
Subject: Re: BINARY and BINARY VARYING datatypes in PostgreSQL