Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwG3K-0003uZ-Cp for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Oct 2016 22:06:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bwG3J-00007g-Sf for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Oct 2016 22:06: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 1bwG1u-0006xy-Lm for pgsql-hackers@postgresql.org; Mon, 17 Oct 2016 22:05:10 +0000 Received: from mail.postgrespro.ru ([93.174.131.138]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwG1r-000702-EK for pgsql-hackers@postgresql.org; Mon, 17 Oct 2016 22:05:09 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 52FD121C2DAE for ; Tue, 18 Oct 2016 01:05:05 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru Received: from mail.postgrespro.ru ([127.0.0.1]) by localhost (mail.postgrespro.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mKBqJ-8aGJGg for ; Tue, 18 Oct 2016 01:05:05 +0300 (MSK) Received: from localhost (0894949280.static.corbina.ru [78.107.237.198]) by mail.postgrespro.ru (Postfix) with ESMTPSA id F1B7721C2DAB for ; Tue, 18 Oct 2016 01:05:04 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1476741905; bh=7JRr9wTDMRhyZw4lvuSLVwTQYsQSpAmYZkmuViSXHEc=; h=From:To:Subject:Date:In-Reply-To:References; b=PYno4hiNdj8EaA1wndL1rQDJA7zFfj5UUAy/ZXyQ/JKXT+4YSjhXKy0WOPijcqYne IPfFktp5oOLRRieg4NjtKCD+JkdrHNva+uVa+e062cXfIxtdOTp69JASf48hWVmmiJ EKradPQF6FNyijTOdXcxoDAuVrGEZXRIYzDM31qI= From: Yury Zhuravlev To: Subject: Re: Add PGDLLEXPORT to =?iso-8859-1?Q?PG=5FFUNCTION=5FINFO=5FV1?= Date: Tue, 18 Oct 2016 01:03:34 +0300 MIME-Version: 1.0 Message-ID: <37b5addc-b08f-4a2e-b34d-7e977080db07@postgrespro.ru> 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> <10624.1476735097@sss.pgh.pa.us> <12120.1476736950@sss.pgh.pa.us> Organization: postgrespro User-Agent: Trojita/v0.6-216-g795fa33; Qt/5.7.0; xcb; Linux; Gentoo Base System release 2.3 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.3 (--) 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 wrote: > Yeah, I don't know. For my money, decorating the function definitions > in place seems easier than having to maintain a separate export list, > especially if it can be hidden under the carpet using the existing > stupid macro tricks. But I am not a Windows expert. I suppose we should to establish politics for this case. Because any who=20 see this and who have experience in Windows surprised by this. For windows= =20 any DLL it is like plugins which must use strict API for communications and= =20 resolving symbols. The situation is that in Postgres we have not API for=20 extensions in the Windows terms.=20 In future CMake will hide all this troubles in itself but if tell in truth= =20 I don't like this situation when any extension has access to any non-static= =20 symbols. However time to time we meet static function that we want to=20 reusing in our extension and today I know only one decision - copy-paste.=20 Without strict politics in this case we will be time to time meet new=20 persons who ask this or similar question. --=20 Yury Zhuravlev Postgres Professional: http://www.postgrespro.com The Russian Postgres Company --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers