public inbox for [email protected]
help / color / mirror / Atom feedPostgreSQL, C-Extension, calling other Functions
2+ messages / 2 participants
[nested] [flat]
* PostgreSQL, C-Extension, calling other Functions
@ 2019-10-11 08:13 Stefan Wolf <[email protected]>
2019-10-11 14:08 ` Re: PostgreSQL, C-Extension, calling other Functions Paul Ramsey <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Wolf @ 2019-10-11 08:13 UTC (permalink / raw)
To: [email protected]
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-
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: PostgreSQL, C-Extension, calling other Functions
2019-10-11 08:13 PostgreSQL, C-Extension, calling other Functions Stefan Wolf <[email protected]>
@ 2019-10-11 14:08 ` Paul Ramsey <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Paul Ramsey @ 2019-10-11 14:08 UTC (permalink / raw)
To: Stefan Wolf <[email protected]>; +Cc: [email protected]
DirectFunctionCall() is what you’re looking for.
Odd choice of list to ask?
P
> On Oct 11, 2019, at 1:13 AM, Stefan Wolf <[email protected]> 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-
>
>
>
>
>
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2019-10-11 14:08 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-10-11 08:13 PostgreSQL, C-Extension, calling other Functions Stefan Wolf <[email protected]>
2019-10-11 14:08 ` Paul Ramsey <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox