Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwEHV-000811-0U for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Oct 2016 20:13:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bwEHU-0004PV-Jd for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Oct 2016 20:13:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bwEG6-00024K-Fj for pgsql-hackers@postgresql.org; Mon, 17 Oct 2016 20:11:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bwEG3-0007zU-PC for pgsql-hackers@postgresql.org; Mon, 17 Oct 2016 20:11:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u9HKBbkU010625; Mon, 17 Oct 2016 16:11:37 -0400 From: Tom Lane To: Robert Haas cc: Albe Laurenz , "pgsql-hackers@postgreSQL.org" Subject: Re: Add PGDLLEXPORT to PG_FUNCTION_INFO_V1 In-reply-to: References: <5586.1476276329@sss.pgh.pa.us> <8027.1476279261@sss.pgh.pa.us> <10909.1476282370@sss.pgh.pa.us> <31374.1476290849@sss.pgh.pa.us> <1817.1476307651@sss.pgh.pa.us> <9601.1476309997@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Mon, 17 Oct 2016 15:57:57 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10623.1476735097.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 17 Oct 2016 16:11:37 -0400 Message-ID: <10624.1476735097@sss.pgh.pa.us> X-Pg-Spam-Score: -2.2 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas writes: > On Fri, Oct 14, 2016 at 10:14 AM, Albe Laurenz = wrote: >> Actually I would say that the correct solution is to remove the function >> declarations from all the header files in contrib, since from commit e71= 28e8d >> on the functions are declared by PG_FUNCTION_INFO_V1 anyway, right? > Right. Why isn't that already the case? Commit e7128e8d seems to > have tried. Did it just miss a bunch of cases? That only works to the extent that there are no cross-file references to those symbols within the extension. If that's true for 99% or more of them then this is probably a good way to go. If it's only true for, say, 75%, I'm not sure we want to decimate the headers that way. We'd end up with something doubly ugly: both haphazard-looking lists of only some of the symbols, and PGDLLEXPORT marks on those that remain. As for the core problem, I wonder why we aren't recommending that third-party modules be built using the same infrastructure contrib uses, rather than people ginning up their own infrastructure and then finding out the hard way that that means they need PGDLLEXPORT marks. regards, tom lane --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers