From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: shared_libperl, shared_libpython
Date: Tue, 28 Apr 2015 20:48:20 -0700
Message-ID: <34893.1430279300@sss.pgh.pa.us> (raw)
In-Reply-To: <553FEE3F.2040408@gmx.net>
References: <E1YmNw0-0002Kb-3Q@gemulon.postgresql.org>
<20150427172712.GX4369@alvh.no-ip.org>
<1602.1430193947@sss.pgh.pa.us>
<553FEE3F.2040408@gmx.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Peter Eisentraut <peter_e@gmx.net> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, peter_e@gmx.net, alvherre@2ndquadrant.com, pgsql-hackers@postgresql.org
Subject: Re: shared_libperl, shared_libpython
In-Reply-To: <34893.1430279300@sss.pgh.pa.us>
References: <E1YmNw0-0002Kb-3Q@gemulon.postgresql.org> <20150427172712.GX4369@alvh.no-ip.org> <1602.1430193947@sss.pgh.pa.us> <553FEE3F.2040408@gmx.net> <34893.1430279300@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox