> 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