pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Add port/strnlen support to libpq and ecpg Makefiles.
Date: Wed, 11 Oct 2017 09:12:18 -0700
Message-ID: <20171011161218.xnnedpo47qa2voi6@alap3.anarazel.de> (raw)
In-Reply-To: <20091.1507737538@sss.pgh.pa.us>
References: <E1e2Ivg-0000Tx-DF@gemulon.postgresql.org>
	<20171011154910.qwceculjehz5xyn3@alap3.anarazel.de>
	<20091.1507737538@sss.pgh.pa.us>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Hi,

On 2017-10-11 11:58:58 -0400, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > Phew. This is a bit a sad state of affairs. The separate libpq logic for
> > getting pgport is presumably because of possibly different threading
> > flags and then because of the appropriate compiler/linker flags for a
> > shared library?
> 
> I don't see why threading would matter, but building with -fPIC or
> not is definitely an issue.

-pthread changes some "memory model" type assumptions by the compiler
too IIRC, not just linker stage things. In a non-threaded environment
the compiler is kinda free to invent phantom stores and such. It's
unlikely to matter for just pgbench, but ...


> 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 ;)


> 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.

Greetings,

Andres Freund


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (6+ messages)  latest in thread

Message-ID: <20171011161218.xnnedpo47qa2voi6@alap3.anarazel.de>
Permalink:  ../20171011161218.xnnedpo47qa2voi6@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20171011161218.xnnedpo47qa2voi6@alap3.anarazel.de

 · 

reply

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: andres@anarazel.de, tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Add port/strnlen support to libpq and ecpg Makefiles.
  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>

* 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