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

From Magnus Hagander
Subject fmgr.h vs funcapi.h?
Date
Msg-id 4926D510.2030104@hagander.net
Whole thread Raw
Responses Re: fmgr.h vs funcapi.h?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
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.

From what I can find in the docs, fmgr.h is the one to use as long as
you don't need to do set returning functions (mine is a simpe
int-returning function).

Docs issue, code issue, or Magnus-issue?

//Magnus


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Updates of SE-PostgreSQL 8.4devel patches (r1197)
Next
From: Emmanuel Cecchet
Date:
Subject: Re: Transactions and temp tables