Re: PostgreSQL, C-Extension, calling other Functions

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: PostgreSQL, C-Extension, calling other Functions
Дата
Msg-id CAFj8pRAdLmo2SuTy3qDFkawGZzG82sHjryFVT0eJ+VOxO-YWpw@mail.gmail.com
обсуждение исходный текст
Список pgsql-hackers
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)));

Regards

Pavel


Greetings from Berlin
-Stefan Wolf-





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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: maintenance_work_mem used by Vacuum
Следующее
От: David Rowley
Дата:
Сообщение: Re: BRIN index which is much faster never chosen by planner