mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
957a6149e5
A few minutes ago I sent down the PL/Tcl directory to this list. Look at it and reuse anything that might help to build PL/perl. I really hope that PL/perl and PL/Tcl appear in the 6.3 distribution. I'll do whatever I can to make this happen. |
||
---|---|---|
.. | ||
pltcl_delmod | ||
pltcl_listmod | ||
pltcl_loadmod | ||
README | ||
unknown.pltcl |
The module support over the unknown command requires, that the PL/Tcl call handler is compiled with -DPLTCL_UNKNOWN_SUPPORT. Regular Tcl scripts of any size (over 8K :-) can be loaded into the table pltcl_modules using the pltcl_loadmod script. The script checks the modules that the procedure names don't overwrite existing ones before doing anything. They also check for global variables created at load time. All procedures defined in the module files are automatically added to the table pltcl_modfuncs. This table is used by the unknown procedure to determine if an unknown command can be loaded by sourcing a module. In that case the unknonw procedure will silently source in the module and reexecute the original command that invoked unknown. I know, thist readme should be more explanatory - but time. Jan