Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YnIzH-0002tZ-Ra for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Apr 2015 03:48:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YnIzG-0008Li-Un for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Apr 2015 03:48:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YnIzE-0008LY-Gx for pgsql-hackers@postgresql.org; Wed, 29 Apr 2015 03:48:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YnIzB-0000WM-5i for pgsql-hackers@postgresql.org; Wed, 29 Apr 2015 03:48:35 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t3T3mJn4000775; Tue, 28 Apr 2015 23:48:20 -0400 From: Tom Lane To: Peter Eisentraut cc: Alvaro Herrera , pgsql-hackers Subject: Re: shared_libperl, shared_libpython In-reply-to: <553FEE3F.2040408@gmx.net> References: <20150427172712.GX4369@alvh.no-ip.org> <1602.1430193947@sss.pgh.pa.us> <553FEE3F.2040408@gmx.net> Comments: In-reply-to Peter Eisentraut message dated "Tue, 28 Apr 2015 16:31:59 -0400" Date: Tue, 28 Apr 2015 20:48:20 -0700 Message-ID: <34893.1430279300@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Peter Eisentraut writes: > On 4/28/15 12:05 AM, Tom Lane wrote: >> Yeah. Even more specifically, olinguito does have --with-python in its >> configure flags, but then the plpython Makefile skips the build because >> libpython isn't available as a shared library. But the contrib test is >> (I assume, haven't looked) conditional only on the configure flag. >> >> I'm not real sure now why we felt that was a good approach. The general >> project policy is that if you ask for a feature in the configure flags, >> we'll build it or die trying; how come this specific Python issue gets >> special treatment contrary to that policy? > The reason for the current setup is actually that when plperl and later > plpython was added, we still had Perl and Python client modules in our > tree (Pg.pm and pygresql), and configure --with-perl and --with-python > were meant to activate their build primarily. Also, in those days, > having a shared libperl or libpython was rare. But we didn't want to > fail the frontend interface builds because of that. So we arrived at > the current workaround. Ah. I'm glad you remember, because I didn't. > My preference would be to rip all that out and let the compiler or > linker decide when it doesn't want to link something. Works for me, assuming that we get an understandable failure message and not, say, a plperl.so that mysteriously doesn't work. 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