Re: pgsql: psql: fix \connect with URIs and conninfo strings

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: psql: fix \connect with URIs and conninfo strings
Дата
Msg-id 25014.1427942947@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: psql: fix \connect with URIs and conninfo strings  (Michael Paquier <michael.paquier@gmail.com>)
Ответы Re: pgsql: psql: fix \connect with URIs and conninfo strings  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-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


В списке pgsql-committers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: pgsql: psql: fix \connect with URIs and conninfo strings
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: pgsql: psql: fix \connect with URIs and conninfo strings