Re: fmgr.h vs funcapi.h?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: fmgr.h vs funcapi.h?
Date: 2008-11-21 16:12:55
Message-ID: 2026.1227283975@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2008-11-21 16:17:32 Re: Re: [COMMITTERS] pgsql: Silence compiler warning about ignored return value.
Previous Message Tom Lane 2008-11-21 16:00:39 Re: [COMMITTERS] pgsql: TABLE command