"Bob Parkinson" <rwp(at)biome(dot)ac(dot)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