Re: Package support for Postgres - Mailing list pgsql-hackers

From Bill Studenmund
Subject Re: Package support for Postgres
Date
Msg-id Pine.NEB.4.33.0110160618530.1551-100000@vespasia.home-net.internetconnect.net
Whole thread Raw
In response to Re: Package support for Postgres  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Package support for Postgres
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Daniel Varela Santoalla
Date:
Subject: Re: Pre-forking backend
Next
From: darcy@druid.net (D'Arcy J.M. Cain)
Date:
Subject: pg_sorttemp files