From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-hackers@postgresql.org, Andres Freund <andres@anarazel.de>
Cc: pgsql-committers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Add port/strnlen support to libpq and ecpg Makefiles.
Date: Wed, 11 Oct 2017 12:32:20 -0400
Message-ID: <22846.1507739540@sss.pgh.pa.us> (raw)
In-Reply-To: <20171011161218.xnnedpo47qa2voi6@alap3.anarazel.de>
References: <E1e2Ivg-0000Tx-DF@gemulon.postgresql.org>
<20171011154910.qwceculjehz5xyn3@alap3.anarazel.de>
<20091.1507737538@sss.pgh.pa.us>
<20171011161218.xnnedpo47qa2voi6@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Andres Freund <andres@anarazel.de> writes:
> On 2017-10-11 11:58:58 -0400, Tom Lane wrote:
>> I agree the PITA factor of the current approach keeps increasing.
>> It sounds a bit silly to build libpgport three ways, but maybe
>> we should just do that.
> We already kinda are, just by copying things around ;)
Yeah. I hadn't realized how much duplication of effort is happening
within ecpg. This was a somewhat reasonable solution when it was
first invented for libpq only, but building snprintf.o four times
is pretty silly.
>> Or conceivably we should just build the FE version of libpgport.a
>> with -fPIC and not worry about whether that loses some efficiency
>> for client programs. A lot of distros are effectively forcing
>> that, or even -fPIE, anyway.
> Hm.
On reflection, let's just go with the solution of building libpgport_lib.a
with the right flags (fPIC + threading) and leave libpgport.a alone.
That way we don't need a debate about whether there's an efficiency
cost worth worrying about.
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, andres@anarazel.de
Subject: Re: [COMMITTERS] pgsql: Add port/strnlen support to libpq and ecpg Makefiles.
In-Reply-To: <22846.1507739540@sss.pgh.pa.us>
References: <E1e2Ivg-0000Tx-DF@gemulon.postgresql.org> <20171011154910.qwceculjehz5xyn3@alap3.anarazel.de> <20091.1507737538@sss.pgh.pa.us> <20171011161218.xnnedpo47qa2voi6@alap3.anarazel.de> <22846.1507739540@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