From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Stefan Wolf <sw(at)zpmt(dot)de> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: PostgreSQL, C-Extension, calling other Functions |
Date: | 2019-10-11 08:22:28 |
Message-ID: | CAFj8pRAdLmo2SuTy3qDFkawGZzG82sHjryFVT0eJ+VOxO-YWpw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi
pá 11. 10. 2019 v 10:15 odesílatel Stefan Wolf <sw(at)zpmt(dot)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-
>
>
>
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | La Cancellera Yoann | 2019-10-11 08:38:58 | Issues with PAM : log that it failed, whether it actually failed or not |
Previous Message | Stefan Wolf | 2019-10-11 08:15:31 | PostgreSQL, C-Extension, calling other Functions |