How do you call one pltcl procedure from another? - Mailing list pgsql-general

From Jonathan Ellis
Subject How do you call one pltcl procedure from another?
Date
Msg-id 038a01c04691$04e9b040$0d00a8c0@dsl.inconnect.com
Whole thread Raw
In response to Alpha FreeBSD port of PostgreSQL !!!  (Nathan Boeger <nathan@khmere.com>)
List pgsql-general
I defined a procedure

CREATE FUNCTION meta_class (varchar) RETURNS varchar AS '
...
' LANGUAGE 'pltcl';

This works fine.  But when I want to call it from another tcl procedure I
get errors:
bf2=# CREATE FUNCTION foo (varchar) RETURNS varchar AS '
    return [meta_class $1]
' LANGUAGE 'pltcl';

bf2'# bf2'# CREATE

bf2=# bf2=# select foo(class) from weapon_Types;
ERROR:  pltcl: invalid command name "meta_class"

This IS possible -- isn't it?

-Jonathan


pgsql-general by date:

Previous
From: Justin Foster
Date:
Subject: Re: Memory Leak
Next
From: Matt Beauregard
Date:
Subject: Re: Sharing Postgres Files