Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwWXg-0002uo-Sk for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Oct 2016 15:43:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bwWXg-0006qn-FX for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Oct 2016 15:43:04 +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 1bwWXf-0006qW-LE for pgsql-hackers@postgresql.org; Tue, 18 Oct 2016 15:43:03 +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 1bwWXY-0004P4-RG for pgsql-hackers@postgresql.org; Tue, 18 Oct 2016 15:43:03 +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 u9IFgqub015567; Tue, 18 Oct 2016 11:42:52 -0400 From: Tom Lane To: Craig Ringer cc: Andres Freund , Robert Haas , Albe Laurenz , "pgsql-hackers@postgreSQL.org" Subject: Re: Add PGDLLEXPORT to PG_FUNCTION_INFO_V1 In-reply-to: <979.1476802684@sss.pgh.pa.us> References: <10909.1476282370@sss.pgh.pa.us> <31374.1476290849@sss.pgh.pa.us> <1817.1476307651@sss.pgh.pa.us> <9601.1476309997@sss.pgh.pa.us> <10624.1476735097@sss.pgh.pa.us> <20161017201935.gwy3n5c5j7v6pc3a@alap3.anarazel.de> <979.1476802684@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Tue, 18 Oct 2016 10:58:04 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15565.1476805372.1@sss.pgh.pa.us> Date: Tue, 18 Oct 2016 11:42:52 -0400 Message-ID: <15566.1476805372@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: > No, it's cross *file* references within a single contrib module that > would be likely to need extern declarations in a header file. That's > not especially weird IMO. I'm not sure how many cases there actually > are though. I poked at this a little bit. AFAICT, the only actual cross-file references are in contrib/ltree/, which has quite a few. Maybe we could hold our noses and attach PGDLLEXPORT to the declarations in ltree.h. hstore's HSTORE_POLLUTE macro would also need PGDLLEXPORT-ification, but that's just within the macro so it wouldn't be too ugly. The other problem is xml2's xml_is_well_formed(), which duplicates the name of a core backend function. If we PGDLLEXPORT-ify that, we get conflicts against the core's declaration in utils/xml.h. I do not see any nice way to dodge that. Maybe we could decide that six releases' worth of backwards compatibility is enough and just drop it from xml2 --- AFAICS, that would only break applications that had never updated to the extension-ified version of xml2 at all. 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