From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgresql.org
Cc: pgsql-committers@postgresql.org
Subject: Re: [HACKERS] pgsql: Add port/strnlen support to libpq and ecpg Makefiles.
Date: Thu, 12 Oct 2017 13:03:59 -0400
Message-ID: <673.1507827839@sss.pgh.pa.us> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
I wrote:
> 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.
I looked into this and got discouraged after realizing that not only does
libpq pull in and recompile a bundle of src/port/ files, but also from
src/common/, and even some random backend files like encnames.c and
wchar.c. We could possibly apply the same build-a-third-way technique to
src/common/, but we'd still end up with messiness for the encoding files.
Perhaps what this is telling us is that encnames.c and wchar.c ought to be
moved to src/common/.
On top of that, there are also some interactions with the MSVC build
system that I don't especially want to debug or untangle.
In short, this is looking like a whole lot more work than we could
ever hope to save by not having to maintain these file lists anymore.
So I'm not planning to pursue it. If someone else wants to, though,
have at it.
regards, tom lane
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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, pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] pgsql: Add port/strnlen support to libpq and ecpg Makefiles.
In-Reply-To: <673.1507827839@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> <673.1507827839@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