Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YdVC0-0003XF-Nt for pgsql-committers@arkaria.postgresql.org; Thu, 02 Apr 2015 02:49:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YdVC0-0001A4-5C for pgsql-committers@arkaria.postgresql.org; Thu, 02 Apr 2015 02:49:16 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YdVBz-00017U-Au for pgsql-committers@postgresql.org; Thu, 02 Apr 2015 02:49:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YdVBw-0005Z1-4w for pgsql-committers@postgresql.org; Thu, 02 Apr 2015 02:49:13 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t322n7PX025015; Wed, 1 Apr 2015 22:49:07 -0400 From: Tom Lane To: Michael Paquier cc: Alvaro Herrera , pgsql-committers@postgresql.org Subject: Re: pgsql: psql: fix \connect with URIs and conninfo strings In-reply-to: References: Comments: In-reply-to Michael Paquier message dated "Thu, 02 Apr 2015 11:36:50 +0900" Date: Wed, 01 Apr 2015 22:49:07 -0400 Message-ID: <25014.1427942947@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Michael Paquier writes: > The patch attached fixes all those inconsistencies (tested build on OSX and > Windows). I think this is going in the wrong direction entirely, ie doubling down on Alvaro's original mistake. libpq *must not* depend on libpgcommon, because the latter is not compiled to be position-independent code (on machines where that matters). Furthermore, proposing to add this: +#ifndef FRONTEND +#error "This file is not expected to be compiled for backend code" +#endif seems to me to prove that connstrings.c didn't belong in src/common in the first place. I'm too tired to think through exactly what this should be like instead, but we do have rules about what goes where, and the response to violating those rules should not be to break down the divisions even more. 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