Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwVrd-00012e-NE for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Oct 2016 14:59:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bwVrd-0005Ae-3V for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Oct 2016 14:59:37 +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 1bwVqE-0003cV-Td for pgsql-hackers@postgresql.org; Tue, 18 Oct 2016 14:58:11 +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 1bwVqC-0000gC-CU for pgsql-hackers@postgresql.org; Tue, 18 Oct 2016 14:58:09 +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 u9IEw4jQ000980; Tue, 18 Oct 2016 10:58:04 -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: 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> Comments: In-reply-to Craig Ringer message dated "Tue, 18 Oct 2016 11:48:28 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <978.1476802684.1@sss.pgh.pa.us> Date: Tue, 18 Oct 2016 10:58:04 -0400 Message-ID: <979.1476802684@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 Craig Ringer writes: > On 18 October 2016 at 04:19, Andres Freund wrote: >> On 2016-10-17 16:16:37 -0400, Robert Haas wrote: >>> I wouldn't think that cross-file references would be especially >>> common. Functions that take PG_FUNCTION_ARGS and return Datum aren't >>> a lot of fun to call from C. But maybe I'm wrong. >> There's a fair number of DirectFunctionCall$Ns over the backend. > It's only an issue if one contrib calls another contrib (or the core > backend code calls into a contrib, but that's unlikely) via > DirectFunctionCall . 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. 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