Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2Jce-0004or-90 for pgsql-committers@arkaria.postgresql.org; Wed, 11 Oct 2017 16:12:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e2Jcd-00065X-S3 for pgsql-committers@arkaria.postgresql.org; Wed, 11 Oct 2017 16:12:39 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e2JcN-0005BG-OY for pgsql-committers@postgresql.org; Wed, 11 Oct 2017 16:12:23 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e2JcL-0001hS-Bm for pgsql-committers@postgresql.org; Wed, 11 Oct 2017 16:12:22 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id C8008213AD; Wed, 11 Oct 2017 12:12:20 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Wed, 11 Oct 2017 12:12:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=GGDAT394Vuxi1/VWRqMPpHY8QNqlg MN6wkw6FJLisfg=; b=h7tkAhtPvxSKtDnuUil7VEbgdhbh+Ko40RpSV6Om47vyb JRp6iZEJB91/lgg2xSorlSH2nCt0IbvYWraYzAgd74DbGAjIhPf54+R5zlGUcaZe DX7q2LV9aHDZEo8Q6fLXGte+EwIK/z3ROHmsEVVC25hQhOz4k0fpWNc63+VbbxF0 iRptbVBCD53HnP2bWkVStxjPmNWma4uBCVx2xIfvljydyV6LTfAwJf1/Cscto7x9 9FMzTP1IcxOOZqgYcvXOAL+YfsTWQWqXGlyeIlUSp2uEmKn2s7MwuZeYIfziFfDd vHu9XdC0ywCEafvblwyuaLKdn2H3Deq44hEVvix8w== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.72]) by mail.messagingengine.com (Postfix) with ESMTPA id 784C87E660; Wed, 11 Oct 2017 12:12:20 -0400 (EDT) Date: Wed, 11 Oct 2017 09:12:18 -0700 From: Andres Freund To: Tom Lane Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Add port/strnlen support to libpq and ecpg Makefiles. Message-ID: <20171011161218.xnnedpo47qa2voi6@alap3.anarazel.de> References: <20171011154910.qwceculjehz5xyn3@alap3.anarazel.de> <20091.1507737538@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091.1507737538@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Hi, On 2017-10-11 11:58:58 -0400, Tom Lane wrote: > Andres Freund 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