Re: fmgr.h vs funcapi.h? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: fmgr.h vs funcapi.h?
Date
Msg-id 2026.1227283975@sss.pgh.pa.us
Whole thread Raw
In response to fmgr.h vs funcapi.h?  (Magnus Hagander <magnus@hagander.net>)
Responses Re: fmgr.h vs funcapi.h?  (Magnus Hagander <magnus@hagander.net>)
List pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> I was writing a simple standalone function compiled with pgxs - been a
> while since I did that.

> Including "postgres.h" and "fmgr.h", it didn't work - the backend would
> complain that the function did not exist in the shared library.
> Including "postgres.h" and "funcapi.h" *did* work - no complaints.

I can't recall ever having had to do that.  Can you show a complete
example (including the Makefile you're using)?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [COMMITTERS] pgsql: TABLE command
Next
From: Peter Eisentraut
Date:
Subject: Re: Re: [COMMITTERS] pgsql: Silence compiler warning about ignored return value.