Re: sharing tcl proc's between functions - Mailing list pgsql-general

From Tom Lane
Subject Re: sharing tcl proc's between functions
Date
Msg-id 9102.1088608549@sss.pgh.pa.us
Whole thread Raw
In response to sharing tcl proc's between functions  ("Bob Parkinson" <rwp@biome.ac.uk>)
List pgsql-general
"Bob Parkinson" <rwp@biome.ac.uk> writes:
> Is it possible to share some TCL proc's between a set of functions?

Sure.  IIRC all pltcl functions run in a backend share one interpreter
(and pltclu functions share a second one).  You might look at the
"pltcl_modules" code as a convenient way of getting things loaded upon
first use:
http://www.postgresql.org/docs/7.4/static/pltcl-unknown.html

            regards, tom lane

pgsql-general by date:

Previous
From: laurent.marzullo@one-d.com
Date:
Subject: Transaction XID
Next
From: Ian Barwick
Date:
Subject: Re: substring syntax with regexp