Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1buRfd-0000VU-MY for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Oct 2016 22:06:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1buRfd-0003vo-4k for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Oct 2016 22:06:41 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1buRfc-0003vh-KD for pgsql-hackers@postgresql.org; Wed, 12 Oct 2016 22:06:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1buRfa-0000wu-Dw for pgsql-hackers@postgresql.org; Wed, 12 Oct 2016 22:06:39 +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 u9CM6bdP009602; Wed, 12 Oct 2016 18:06:37 -0400 From: Tom Lane To: Albe Laurenz cc: "pgsql-hackers@postgreSQL.org" Subject: Re: Add PGDLLEXPORT to PG_FUNCTION_INFO_V1 In-reply-to: <1817.1476307651@sss.pgh.pa.us> 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> Comments: In-reply-to Tom Lane message dated "Wed, 12 Oct 2016 17:27:31 -0400" Date: Wed, 12 Oct 2016 18:06:37 -0400 Message-ID: <9601.1476309997@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 I wrote: > Well, the buildfarm doesn't like that even a little bit. It seems that > the MSVC compiler does not like seeing both "extern Datum foo(...)" and > "extern PGDLLEXPORT Datum foo(...)", so anything that had an extern in > a .h file is failing. There is also quite a bit of phase-of-the-moon > behavior in here, because in some cases some functions are raising errors > and others that look entirely the same are not. I take back the latter comment --- I was comparing HEAD source code against errors reported on back branches, and at least some of the discrepancies are explained by additions/removals of separate "extern" declarations. But still, if we want to do this we're going to need to put PGDLLEXPORT in every V1 function extern declaration. We might be able to remove some of the externs as unnecessary instead, but any way you slice it it's going to be messy. For the moment I've reverted the change. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers