On 1/15/14, 12:41 AM, Tom Lane wrote:
> Meh.  I don't think that extension authors are really going to appreciate
> changing from "thou shalt declare all thy functions" to "thou shalt
> declare none of them".

This patch does no such thing.

> If the code were such that it wouldn't matter
> whether a manual declaration were provided too, then that wouldn't be a
> big deal --- but you seem to be ignoring the discussion in the one thread
> cited above about PGDLLEXPORT.

In that thread, you argue that requiring PGDLLEXPORT is not acceptable,
so that makes this argument irrelevant.

> Also, surely it is 100% bogus for fmgr.h to be declaring functions not
> actually provided by fmgr.c.

That's the arrangement if you don't have dynamic loading.  For dynamic
loading, the question isn't necessarily who provides them, but who
determines the interface for them.  There has to be a way for the
postgres backend to say to extension module authors, I'm going to try to
load this function, and this is what it should look like.  This case
wasn't envisioned when they designed C in 1970.  If you have a better
idea, I'm listening.

> That will create about as many failure
> modes as it removes, not to mention being conceptually wrong.

What failure modes?



-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to