1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
5 >Modules and the unknown command</TITLE
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
10 HREF="mailto:pgsql-docs@postgresql.org"><LINK
12 TITLE="PostgreSQL 7.4.1 Documentation"
13 HREF="index.html"><LINK
15 TITLE="PL/Tcl - Tcl Procedural Language"
16 HREF="pltcl.html"><LINK
18 TITLE="Trigger Procedures in PL/Tcl"
19 HREF="pltcl-trigger.html"><LINK
21 TITLE="Tcl Procedure Names"
22 HREF="pltcl-procnames.html"><LINK
25 HREF="stylesheet.css"><META
27 CONTENT="2003-12-22T03:48:47"></HEAD
33 SUMMARY="Header navigation table"
43 >PostgreSQL 7.4.1 Documentation</TH
51 HREF="pltcl-trigger.html"
67 >Chapter 38. PL/Tcl - Tcl Procedural Language</TD
81 HREF="pltcl-procnames.html"
96 >38.7. Modules and the <CODE
102 > PL/Tcl has support for autoloading Tcl code when used.
103 It recognizes a special table, <TT
107 is presumed to contain modules of Tcl code. If this table
108 exists, the module <TT
111 > is fetched from the table
112 and loaded into the Tcl interpreter immediately after creating
119 > module could actually contain any
120 initialization script you need, it normally defines a Tcl
124 > procedure that is invoked whenever Tcl does
125 not recognize an invoked procedure name. <SPAN
129 of this procedure tries to find a module in <TT
133 that will define the required procedure. If one is found, it is
134 loaded into the interpreter, and then execution is allowed to
135 proceed with the originally attempted procedure call. A
139 > provides an index of
140 which functions are defined by which modules, so that the lookup
147 > distribution includes
148 support scripts to maintain these tables:
159 >, as well as source for the standard
165 >share/unknown.pltcl</TT
168 into each database initially to support the autoloading mechanism.
178 must be readable by all, but it is wise to make them owned and
179 writable only by the database administrator.
187 SUMMARY="Footer navigation table"
198 HREF="pltcl-trigger.html"
216 HREF="pltcl-procnames.html"
226 >Trigger Procedures in PL/Tcl</TD
240 >Tcl Procedure Names</TD