pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
Cc: Craig Ringer <craig@2ndquadrant.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: New version numbering practices
Date: Thu, 04 Aug 2016 16:31:55 -0400
Message-ID: <9419.1470342715@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoZ_iOirx=0FEy2+1jQi53mMFAp_D0fNfonyF_qooH5OqQ@mail.gmail.com>
References: <7684.1470066581@sss.pgh.pa.us>
	<802ec140-635d-ad86-5fdf-d3af0e260c22@2ndquadrant.com>
	<CA+TgmobYm+-hLaHyYwNrv31-PAahrzcW_gOq5B-ptw8vJ-Afng@mail.gmail.com>
	<2185.1470248118@sss.pgh.pa.us>
	<CAMsr+YGWyJC=8D9GVYTRuQcEqcgAa-bdBbE1fNEdhby46g7WnA@mail.gmail.com>
	<7716.1470285927@sss.pgh.pa.us>
	<CAMsr+YE3vK+j8juJ1cjFh6Yi8EXWnMMB0XqOBVxGeG0PPOAUQA@mail.gmail.com>
	<31870.1470318347@sss.pgh.pa.us>
	<CAB=Je-FGek7Ez9izkexQAo1wuiknfEGOcTE7aOq38nym7Cs5TA@mail.gmail.com>
	<32376.1470319062@sss.pgh.pa.us>
	<CA+TgmoZ_iOirx=0FEy2+1jQi53mMFAp_D0fNfonyF_qooH5OqQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Robert Haas <robertmhaas@gmail.com> writes:
> On Thu, Aug 4, 2016 at 9:57 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> [ shrug... ]  What do you claim is not machine-readable about
>> server_version?

> Surely you can't have missed the connection between the issue at hand
> and what Craig is talking about.  If libpq were using the
> machine-readable version rather than PARSING A STRING, switching to a
> two-part numbering scheme wouldn't force a compatibility break.

Well, yeah, this specific case would not have broken, because we
intentionally chose to maintain backwards compatibility of the
PG_VERSION_NUM data format.  But I think there's nothing much except
wishful thinking backing up the idea that starting to send
server_version_num now will prevent a bug in future.  If we ever do
change our version numbering scheme again, it would quite possibly
be in a way that breaks PG_VERSION_NUM as well.  A fairly obvious
potential reason to need to change something there is overflow of
the two-digit fields: clients relying on PG_VERSION_NUM would be
*more* at risk, not less so, than clients looking at a string.

In short: if we'd done it that way all along, it would've been nice.
But encouraging people to change horses now isn't really going to
make things better.  What is far more likely to happen, if we were
to do that, is that people will make clients that gratuitously fail
on old server versions because they didn't bother to support or test
for the case that the server doesn't send server_version_num.

You don't really want to encourage multiple ways of identifying which
software version you're dealing with.  That way madness lies.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (42+ messages)  latest in thread

Message-ID: <9419.1470342715@sss.pgh.pa.us>
Permalink:  ../9419.1470342715@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9419.1470342715@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-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, sitnikov.vladimir@gmail.com, craig@2ndquadrant.com, peter.eisentraut@2ndquadrant.com
  Subject: Re: New version numbering practices
  In-Reply-To: <9419.1470342715@sss.pgh.pa.us>
  References: <7684.1470066581@sss.pgh.pa.us> <802ec140-635d-ad86-5fdf-d3af0e260c22@2ndquadrant.com> <CA+TgmobYm+-hLaHyYwNrv31-PAahrzcW_gOq5B-ptw8vJ-Afng@mail.gmail.com> <2185.1470248118@sss.pgh.pa.us> <CAMsr+YGWyJC=8D9GVYTRuQcEqcgAa-bdBbE1fNEdhby46g7WnA@mail.gmail.com> <7716.1470285927@sss.pgh.pa.us> <CAMsr+YE3vK+j8juJ1cjFh6Yi8EXWnMMB0XqOBVxGeG0PPOAUQA@mail.gmail.com> <31870.1470318347@sss.pgh.pa.us> <CAB=Je-FGek7Ez9izkexQAo1wuiknfEGOcTE7aOq38nym7Cs5TA@mail.gmail.com> <32376.1470319062@sss.pgh.pa.us> <CA+TgmoZ_iOirx=0FEy2+1jQi53mMFAp_D0fNfonyF_qooH5OqQ@mail.gmail.com> <9419.1470342715@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