Re: PostgreSQL, C-Extension, calling other Functions - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: PostgreSQL, C-Extension, calling other Functions
Date
Msg-id CAFj8pRAdLmo2SuTy3qDFkawGZzG82sHjryFVT0eJ+VOxO-YWpw@mail.gmail.com
Whole thread Raw
List 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 by date:

Previous
From: Amit Kapila
Date:
Subject: Re: maintenance_work_mem used by Vacuum
Next
From: David Rowley
Date:
Subject: Re: BRIN index which is much faster never chosen by planner