plTcl - how to create proc/function libraries

Started by Carlo Stonebanksover 19 years ago5 messagesgeneral
Jump to latest
#1Carlo Stonebanks
stonec.register@sympatico.ca

From the plTcl docs it appears the way for me to create function/procedure
libraries for plTcl is by implementing the "unknown" command. However, my
8.1.4 Windows-based installation doesn't seem to jibe with what the docs say
I should expect::

<<

PL/Tcl has a special support for things often used. It recognizes two magic
tables, pltcl_modules and pltcl_modfuncs.

The docs don't mention where these should be, or how to create them. Other
docs refer to scripts called: pltcl_loadmod, pltcl_listmod and pltcl_delmod
but they are nowhere to be found. Can anyone enlighten me?

<<

To enable this behavior, the PL/Tcl call handler must be compiled
with -DPLTCL_UNKNOWN_SUPPORT set.

I have a Windows-based server, and I am assuming the pre-compiled library
file pltcl.dll is supporting it - no compiling option there. How do I find
out if it was compiled with DPLTCL_UNKNOWN_SUPPORT set?

TIA!

Carlo

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Carlo Stonebanks (#1)
Re: plTcl - how to create proc/function libraries

"Carlo Stonebanks" <stonec.register@sympatico.ca> writes:

To enable this behavior, the PL/Tcl call handler must be compiled
with -DPLTCL_UNKNOWN_SUPPORT set.

Where are you reading that? There's no such sentence in the current
docs, and no sign of any such conditional in the source code either.
I'm not sure why it doesn't work for you, but it's not because it's
been deliberately turned off...

regards, tom lane

#3Carlo Stonebanks
stonec.register@sympatico.ca
In reply to: Carlo Stonebanks (#1)
Re: plTcl - how to create proc/function libraries

True, I cannot find this in the current docs - that statement about the
conditional compile was from some documentation I found from googling
"pltcl_modules pltcl_modfuncs"

I went back to the site i found it and snooped around and saw that it was a
copy of docs from 1998.

Sorry about the confusion, but I don't know whether the pltcl.dll (in other
words, the Windows postgres installation) supports the "unknown" command,
and pulling up this doc (in error, once again - sorry) came out of
desperation for looking for more information on the creating and maintenace
of those tables (pltcl_modules pltcl_modfuncs), and why I don't have the
support scrtipts for them in my Windows installation.

Carlo

"Tom Lane" <tgl@sss.pgh.pa.us> wrote in message
news:9063.1154493062@sss.pgh.pa.us...

Show quoted text

"Carlo Stonebanks" <stonec.register@sympatico.ca> writes:

To enable this behavior, the PL/Tcl call handler must be compiled
with -DPLTCL_UNKNOWN_SUPPORT set.

Where are you reading that? There's no such sentence in the current
docs, and no sign of any such conditional in the source code either.
I'm not sure why it doesn't work for you, but it's not because it's
been deliberately turned off...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

#4Carlo Stonebanks
stonec.register@sympatico.ca
In reply to: Carlo Stonebanks (#1)
Pl/TCL: Is my Windows install missing scripts?

The Windows-PosgreSQL 8.1.4 package I downloaded from the PostgreSQL
download site (right here) does not seem to contain the scripts:
pltcl_delmod

pltcl_listmod

pltcl_loadmod

Have I missed something, or can anyone else confirm?

Carlo

#5Magnus Hagander
magnus@hagander.net
In reply to: Carlo Stonebanks (#4)
Re: Pl/TCL: Is my Windows install missing scripts?

The Windows-PosgreSQL 8.1.4 package I downloaded from the
PostgreSQL download site (right here) does not seem to contain the
scripts:
pltcl_delmod

pltcl_listmod

pltcl_loadmod

Have I missed something, or can anyone else confirm?

They're definitely not included there. Could you check if there are any
other pltcl specific files missing, and then please open a bug report at
the pgfoundry page (http://pgfoundry.org/projects/pginstaller).

//Magnus