global variables in plpgsql? - Mailing list pgsql-sql

From dave.bath@unix.net
Subject global variables in plpgsql?
Date
Msg-id 200604111117.04425.dave.bath@unix.net
Whole thread Raw
Responses Re: global variables in plpgsql?  (John DeSoi <desoi@pgedit.com>)
List pgsql-sql
Folks,

In v8.0.3 documentation, plperl, plpython and pltcl allow declaration of
variables that are global and persistent within a session.

begin_quote
37.4. Global Values in PL/Perl
You can use the global hash %_SHARED to store data, including code references,
between function calls for the lifetime of the current session.
end_quote

So, a couple of questions....
1) Can you declare global values from plpgsql?
2) If so, is there a way of avoiding namespace pollution?  (perhaps the equivalent to Oracle's use of plsql package
variables)

tia
-- 
David T. Bath
dave.bath@unix.net



pgsql-sql by date:

Previous
From: Ross Johnson
Date:
Subject: Re: how to use recursion to find end nodes of a tree
Next
From: "Vellinga, Fred"
Date:
Subject: Special meaning of NL string