By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,704 Members | 1,076 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,704 IT Pros & Developers. It's quick & easy.

sharing tcl proc's between functions

P: n/a
Hi,

Is it possible to share some TCL proc's between a set of functions? Something like

proc mything {
}

proc otherthing {
}
create function wantsthings (text) returns text as
'
return [mything [otherthing fubar]]

' language 'pltcl';

Cheers,




Bob

This message has been scanned but we cannot guarantee that it and any
attachments are free from viruses or other damaging content: you are
advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly

Nov 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Bob Parkinson" <rw*@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/s...l-unknown.html

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.