Re: how do you call one pltcl function from another? - Mailing list pgsql-general

From Jonathan Ellis
Subject Re: how do you call one pltcl function from another?
Date
Msg-id 097b01c0499f$ea777960$0d00a8c0@dsl.inconnect.com
Whole thread Raw
In response to Re: how do you call one pltcl function from another?  (Jan Wieck <janwieck@Yahoo.com>)
Responses Re: how do you call one pltcl function from another?  (Jan Wieck <janwieck@Yahoo.com>)
List pgsql-general
>     You need to call it via SPI like
>
>         spi_exec "select meta_class($1) as retval"
>         return $retval

What kind of performance hit is there doing this vs two plpgsql functions?
IIANM, you're creating two separate tcl interpreters this way, which seems
expensive.

-Jonathan


pgsql-general by date:

Previous
From: "Edward Q. Bridges"
Date:
Subject: Re: default timestamp and default autoinc
Next
From: Randy Jonasz
Date:
Subject: SQL