Re: PostgreSQL, C-Extension, calling other Functions
Re: PostgreSQL, C-Extension, calling other Functions
От:
Pavel Stehule <pavel.stehule@gmail.com>
Дата:
Hi
pá 11. 10. 2019 v 10:15 odesílatel Stefan Wolf <sw@zpmt.de> napsal:
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.
search DirectFunctionCall
<-->PG_RETURN_NUMERIC(
<--><-->DirectFunctionCall1(float8_numeric, Float8GetDatumFast(result)));
<--><-->DirectFunctionCall1(float8_numeric, Float8GetDatumFast(result)));
Regards
Pavel
Greetings from Berlin
-Stefan Wolf-