pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: psql: fix \connect with URIs and conninfo strings
Date: Wed, 01 Apr 2015 22:49:07 -0400
Message-ID: <25014.1427942947@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB7nPqTO1FN7iNXaPS2eXDy4WXBnCWnOOawePtt-JvOrLi36kg@mail.gmail.com>
References: <E1YdRlq-0001NF-Gw@gemulon.postgresql.org>
	<CAB7nPqSTzO1rex5nMZXvw-ywgO3T2oV_oSA12m9un12bbDz=AA@mail.gmail.com>
	<CAB7nPqTkUb7TMt5qKTKk1Pw=9g7thLpVRaBtqNmn=3_JQ53bYA@mail.gmail.com>
	<CAB7nPqTO1FN7iNXaPS2eXDy4WXBnCWnOOawePtt-JvOrLi36kg@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Michael Paquier <michael.paquier@gmail.com> 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



view thread (22+ messages)  latest in thread

Message-ID: <25014.1427942947@sss.pgh.pa.us>
Permalink:  ../25014.1427942947@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25014.1427942947@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, michael.paquier@gmail.com, alvherre@alvh.no-ip.org
  Subject: Re: pgsql: psql: fix \connect with URIs and conninfo strings
  In-Reply-To: <25014.1427942947@sss.pgh.pa.us>
  References: <E1YdRlq-0001NF-Gw@gemulon.postgresql.org> <CAB7nPqSTzO1rex5nMZXvw-ywgO3T2oV_oSA12m9un12bbDz=AA@mail.gmail.com> <CAB7nPqTkUb7TMt5qKTKk1Pw=9g7thLpVRaBtqNmn=3_JQ53bYA@mail.gmail.com> <CAB7nPqTO1FN7iNXaPS2eXDy4WXBnCWnOOawePtt-JvOrLi36kg@mail.gmail.com> <25014.1427942947@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