pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Kieran McCusker <kieran.mccusker@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: PG_VERSION_NUM formatted incorrectly
Date: Mon, 22 Jan 2018 16:04:55 -0300
Message-ID: <20180122190455.7zpoxjuesi4qk7jt@alvherre.pgsql> (raw)
In-Reply-To: <CAGgUQ6Fd0EjQZLnp-JsBSCashtehx6rLbq_crx6y=++JZqm0Rw@mail.gmail.com>

Kieran McCusker wrote:
> Hi
> 
> I was looking at an issue with ogr_fdw where it is trying to get
> the PG_VERSION_NUM when I noticed that in Postgresql 10.1 this is declared
> as:
> 
> #define PG_VERSION_NUM 100001
> 
> But shouldn't it be
> 
> #define PG_VERSION_NUM 100100
> 
> or am I being dense, in which case sorry to have bothered you.

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.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (4+ messages)  latest in thread

Message-ID: <20180122190455.7zpoxjuesi4qk7jt@alvherre.pgsql>
Permalink:  ../20180122190455.7zpoxjuesi4qk7jt@alvherre.pgsql/
Also on:    postgresql.org/message-id/20180122190455.7zpoxjuesi4qk7jt@alvherre.pgsql

 · 

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: alvherre@alvh.no-ip.org, kieran.mccusker@gmail.com
  Subject: Re: PG_VERSION_NUM formatted incorrectly
  In-Reply-To: <20180122190455.7zpoxjuesi4qk7jt@alvherre.pgsql>
  References: <CAGgUQ6Fd0EjQZLnp-JsBSCashtehx6rLbq_crx6y=++JZqm0Rw@mail.gmail.com> <20180122190455.7zpoxjuesi4qk7jt@alvherre.pgsql>

* 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