Re: spi and other languages

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: spi and other languages
Дата
Msg-id 87fz2i5dco.fsf@asmodeus.mcnaught.org
обсуждение исходный текст
Ответ на Re: spi and other languages  (Sibtay Abbas <sibtay_abbas@yahoo.com>)
Список pgsql-hackers
Sibtay Abbas <sibtay_abbas@yahoo.com> writes:

> We can call SQL statements like SPI_Execute("SELECT *
> FROM sometable") from the spi interface. My question
> is that can we enter other procedural languages as
> well, like pgplsql statements.

You can call a function written in another procedural langauge by
executing a SELECT: 

SPI_Execute("SELECT myfunction()")

But you can't execute arbitrary code in other langauges using SPI (of
from the client side, for that matter)--it has to be wrapped up in a
function. 

-Doug


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Doug McNaught
Дата:
Сообщение: Re: how can i add my own procedural language?
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: branch for 8.0?