PostgreSQL, C-Extension, calling other Functions

Поиск
Список
Период
Сортировка
Искать

PostgreSQL, C-Extension, calling other Functions

От:
"Stefan Wolf" <sw@zpmt.de>
Дата:
I´ve written some PostgreSQL C-Extensions (for the first time...) and they
work as expected.

But now I want to call other functions from inside the C-Extensions (but not
via SPI_execute),
for example "regexp_match()" or from other extensions like PostGIS
"ST_POINT" etc...

I think "fmgr" is the key - but I didn't find any examples.

Greetings from Berlin
-Stefan Wolf-





Re: PostgreSQL, C-Extension, calling other Functions

От:
Paul Ramsey <pramsey@cleverelephant.ca>
Дата:
DirectFunctionCall() is what you’re looking for.
Odd choice of list to ask?
P

> On Oct 11, 2019, at 1:13 AM, Stefan Wolf  wrote:
> 
> I´ve written some PostgreSQL C-Extensions (for the first time...) and they
> work as expected.
> 
> But now I want to call other functions from inside the C-Extensions (but not
> via SPI_execute),
> for example "regexp_match()" or from other extensions like PostGIS
> "ST_POINT" etc...
> 
> I think "fmgr" is the key - but I didn't find any examples.
> 
> Greetings from Berlin
> -Stefan Wolf-
> 
> 
> 
> 
> 



FAQ