Magnus Hagander <magnus(at)hagander(dot)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