pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Kieran McCusker <kieran.mccusker@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: PG_VERSION_NUM formatted incorrectly
Date: Mon, 22 Jan 2018 14:14:41 -0500
Message-ID: <5800.1516648481@sss.pgh.pa.us> (raw)
In-Reply-To: <20180122190455.7zpoxjuesi4qk7jt@alvherre.pgsql>
References: <20180122190455.7zpoxjuesi4qk7jt@alvherre.pgsql>

Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> Kieran McCusker wrote:
>> But shouldn't it be
>> #define PG_VERSION_NUM 100100

> You're not being dense -- the way we're using it is indeed a bit odd.
> But it was a concious decision to leave it like this: the reason is that
> we've been using these two digits to indicate patch level rather than
> major for so long, that is seems less likely to break version parsing
> tools if we continue to do that.  So the patch level for release 10 is
> going to use the last two digits only, with the two middle digits
> remaining constant 00 forever.

Right.  If we did it the other way, much code would think that 10.1
is a new major version, not a new minor version.

			regards, tom lane




view thread (4+ messages)

Message-ID: <5800.1516648481@sss.pgh.pa.us>
Permalink:  ../5800.1516648481@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5800.1516648481@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alvherre@alvh.no-ip.org, kieran.mccusker@gmail.com
  Subject: Re: PG_VERSION_NUM formatted incorrectly
  In-Reply-To: <5800.1516648481@sss.pgh.pa.us>
  References: <20180122190455.7zpoxjuesi4qk7jt@alvherre.pgsql> <5800.1516648481@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