Re: pltcl and modules question - Mailing list pgsql-general

From hamann.w@t-online.de
Subject Re: pltcl and modules question
Date
Msg-id wolfgang-1130327175637.A013130@amadeus3.local
Whole thread Raw
In response to Re: pltcl and modules question  ("Greg Sabino Mullane" <greg@turnstep.com>)
List pgsql-general

>>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: RIPEMD160
>>
>>
>> > is there any way to use a module within a pltcl script, i.e. have
>> > load /path/to/mystuff.so
>> > or
>> > package require mystuff
>> > in a script.
>>
>> You can load tcl code by putting it in the pltcl_modules tables. See:
>>
>> http://www.postgresql.org/docs/9.2/static/pltcl-unknown.html
>>
>> > Similarly, would it be possible to access loaded module from perl
>> > script, i.e. have
>> > use mystuff;
>>
>> You can load any Perl module you want within a Pl/PerlU function.
>>
>> It's possible to access shared code with Pl/Perl, but it's a little
>> more involved. See:
>>
>> http://www.postgresql.org/docs/9.2/static/plperl-under-the-hood.html
>>
>> - --

Hi Greg,

thanks a lot, I will give it a try next week. Comparing the two references, I sort of fear
that there mght be a problem when tcl wants to load a binary rather than script module
I can try pgtclu as well....

Regards
Wolfgang Hamann



pgsql-general by date:

Previous
From: Kevin Grittner
Date:
Subject: Re: Why does Postgres allow duplicate (FK) constraints
Next
From: salah jubeh
Date:
Subject: bloating index, pg_restore