Re: New version numbering practices

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: New version numbering practices
Дата
Msg-id CAMsr+YGWyJC=8D9GVYTRuQcEqcgAa-bdBbE1fNEdhby46g7WnA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: New version numbering practices  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: New version numbering practices  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers


On 4 August 2016 at 02:15, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Robert Haas <robertmhaas@gmail.com> writes:
> On Wed, Aug 3, 2016 at 12:12 PM, Peter Eisentraut
> <peter.eisentraut@2ndquadrant.com> wrote:
>> One hiccup I found is that server_version_num is not sent to clients.
>> Instead, libpq assembles the numeric version number itself from the
>> string version, and it will fail if it sees only one number (e.g.,
>> 10devel).  It will then set the version number to 0 for "unknown".

Ugh.

> This pretty much sucks.  I suppose we could at least alleviate the
> problem by back-patching some intelligence about the new scheme into
> back-branches, but of course that will only help people if they
> install newer minor releases.

Yeah.  I doubt there is much reason to assume that people would be
using, say, a 9.5.5 psql and a 9.5.3 libpq or vice versa.  Whatever
the current client behavior is is what people will see.

Having said that, this sort of problem is one reason we wanted to give
ourselves a full year to implement the new scheme.  If we put some
appropriate fix into the back branches *now*, there would be a fair
amount of daylight for that to spread into the field before any users
would be seeing v10 servers in practice.

So it seems like fixing libpq's parsing of server_version_num is
something we definitely want to fix ASAP in all back branches.
Is there anything else that's particularly bad?


Well, this seems like a good time to make server_version_num GUC_REPORT as well... 

--
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

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

Предыдущее
От: Noah Misch
Дата:
Сообщение: Re: [sqlsmith] FailedAssertion("!(k == indices_count)", File: "tsvector_op.c", Line: 511)
Следующее
От: Noah Misch
Дата:
Сообщение: Re: max_parallel_degree > 0 for 9.6 beta