Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Problem enabling pltcl

From: Patrick Logan <patrick(at)c837917-a(dot)potlnd1(dot)or(dot)home(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Problem enabling pltcl
Date: 1999-09-08 16:49:09
Message-ID: 9swB3.16241$Hu6.6507@news.rdc1.wa.home.com (view raw)
I have configured, built, and installed ProsgreSQL 6.5.1 using:

    --with-tcl and --with-tkconfig=<dir>

As far as I have looked, everything was built and installed without a
hitch. The pltcl library is in the right location, and /etc/ld.so.conf
lists that directory.

When I define a function using pltcl I get the following:

    ERROR: Unrecognized language specified in a CREATE FUNCTION:
    'pltcl'.  Recognized languages are sql, C, internal and the
    created procedural languages.

The docs say that pltcl is enabled if it is built with the TCL
option. What am I missing?

Thanks
-- 
Patrick Logan    patrickdlogan(at)home(dot)com

From: Lamar Owen <lamar(dot)owen(at)wgcr(dot)org>
To: patrickdlogan(at)home(dot)com
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Problem enabling pltcl
Date: 1999-09-08 17:30:10
Message-ID: 37D69D22.8876C0C4@wgcr.org (view raw)
Patrick Logan wrote:
>     ERROR: Unrecognized language specified in a CREATE FUNCTION:
>     'pltcl'.  Recognized languages are sql, C, internal and the
>     created procedural languages.
> 
> The docs say that pltcl is enabled if it is built with the TCL
> option. What am I missing?

CREATE LANGUAGE (command line utility 'createlang').  See the regression
test shell script (src/test/regress/regress.sh) for an example using
plpgsql.  The PL's are not created and installed by default, apparently.

Lamar Owen
WGCR Internet Radio

From: Patrick Logan <patrick(at)c837917-a(dot)potlnd1(dot)or(dot)home(dot)com>
To: pgsql-hackers(at)postgresql(dot)org(dot)pgsql-bugs(at)postgresql(dot)org(dot)pgsql-docs(at)postgresql(dot)org
Subject: Re: Problem enabling pltcl
Date: 1999-09-08 20:32:09
Message-ID: dJzB3.16297$Hu6.6589@news.rdc1.wa.home.com (view raw)
Lamar Owen <lamar(dot)owen(at)wgcr(dot)org> wrote:
: Patrick Logan wrote:
:>     ERROR: Unrecognized language specified in a CREATE FUNCTION:
:>     'pltcl'.  Recognized languages are sql, C, internal and the
:>     created procedural languages.
:> 
:> The docs say that pltcl is enabled if it is built with the TCL
:> option. What am I missing?

: CREATE LANGUAGE (command line utility 'createlang').  See the regression
: test shell script (src/test/regress/regress.sh) for an example using
: plpgsql.  The PL's are not created and installed by default, apparently.

Thanks. I also had to create the handler function as per the
documentation for creating new procedural language interfaces.

Boy, the documentation sure read to me like all that was supposed to
be done automatically by the Makefile when configured for pltcl.

Not a big deal, but it wasn't clear to me this had to be done for each
database created. Is this a bug in the documentation?

-- 
Patrick Logan    patrickdlogan(at)home(dot)com

From: wieck(at)debis(dot)com (Jan Wieck)
To: lamar(dot)owen(at)wgcr(dot)org (Lamar Owen)
Cc: patrickdlogan(at)home(dot)com, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Problem enabling pltcl
Date: 1999-09-09 10:53:10
Message-ID: m11P1pG-0003kLC@orion.SAPserv.Hamburg.dsh.de (view raw)
>
> Patrick Logan wrote:
> >     ERROR: Unrecognized language specified in a CREATE FUNCTION:
> >     'pltcl'.  Recognized languages are sql, C, internal and the
> >     created procedural languages.
> >
> > The docs say that pltcl is enabled if it is built with the TCL
> > option. What am I missing?
>
> CREATE LANGUAGE (command line utility 'createlang').  See the regression
> test shell script (src/test/regress/regress.sh) for an example using
> plpgsql.  The PL's are not created and installed by default, apparently.

    Yepp  -  it's  a doc mistake because first I made it that way
    and we decided later not to install by default into template1
    and provide createlang instead.


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#========================================= wieck(at)debis(dot)com (Jan Wieck) #




Privacy Policy | About PostgreSQL
Copyright © 1996-2013 The PostgreSQL Global Development Group