On Sat, 13 Oct 2001, Peter Eisentraut wrote:
> Bill Studenmund writes:
>
> > session-specific package variables,
>
> I think this is assuming a little too much about how a PL might operate.
> Some PLs already support this in their own language-specific way, with or
> without packages. Thus, I don't think packages should touch this.
> Actually, I think you could easily set up session variables in the package
> initializer function.
Could you please give me an example of how to do this, say for plperl or
plpython? Just showing how two functions made with CREATE FUNCTION can use
global variables will be fine. This example will help me understand how
they work.
Take care,
Bill