Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqIvg-0001oS-Ub for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Aug 2018 14:07:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fqIvf-0006kR-EM for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Aug 2018 14:07:11 +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.89) (envelope-from ) id 1fqIvf-0006jy-42 for pgsql-hackers@lists.postgresql.org; Thu, 16 Aug 2018 14:07: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.89) (envelope-from ) id 1fqIvc-00060Q-Kp for pgsql-hackers@postgresql.org; Thu, 16 Aug 2018 14:07: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 w7GE74fn010103; Thu, 16 Aug 2018 10:07:04 -0400 From: Tom Lane To: Andres Freund cc: Peter Eisentraut , pgsql-hackers Subject: Re: remove ancient pre-dlopen dynloader code In-reply-to: <20180816135928.qer5o7uxyaeolzet@alap3.anarazel.de> References: <3e3c7552-978b-486a-1a4a-326ee31d0545@2ndquadrant.com> <20180809123059.32g25qn7dgd33iyq@alap3.anarazel.de> <26726.1533823423@sss.pgh.pa.us> <20180816083107.2f5gxbvlsgvnuit4@alap3.anarazel.de> <8022.1534425734@sss.pgh.pa.us> <20180816135928.qer5o7uxyaeolzet@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 16 Aug 2018 06:59:28 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10101.1534428424.1@sss.pgh.pa.us> Date: Thu, 16 Aug 2018 10:07:04 -0400 Message-ID: <10102.1534428424@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2018-08-16 09:22:14 -0400, Tom Lane wrote: >> The lazy man's way to get rid of it would be to put something like >> "int bogus = 0;" in the empty dynloader.c files. Better would be >> to not have the empty .c files at all, but I'm not sure how much >> we'd have to contort the Makefiles to support that. > If I had my druthers, we'd just remove all that configure magic for > selecting these files and just use ifdefs. Personally I find it > occasionally that they're linked into place, rather than built under > their original name. Even if we all agreed that was an improvement (which I'm not sure of), it wouldn't fix this problem would it? On affected platforms, the file would still be empty after preprocessing. regards, tom lane