Re: [GENERAL] Backward compatibility - Mailing list pgsql-general

From David G. Johnston
Subject Re: [GENERAL] Backward compatibility
Date
Msg-id CAKFQuwZsMjEqFzLb0mCj4CF_ouufaLTc7EqdA8YjtTbygBtJVw@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] Backward compatibility  (Igor Korot <ikorot01@gmail.com>)
Responses Re: [GENERAL] Backward compatibility
List pgsql-general
On Thursday, July 20, 2017, Igor Korot <ikorot01@gmail.com> wrote:
Hi, David,

On Thu, Jul 20, 2017 at 10:23 PM, David G. Johnston
<david.g.johnston@gmail.com> wrote:
> On Thu, Jul 20, 2017 at 7:13 PM, Igor Korot <ikorot01@gmail.com> wrote:

>> Is there a query or a libpg function which can return the version of
>> the server I'm running?
>

Its PQ not PG - and I'd doubt it but I don't directly use libpq.
 
Is there a way to get a version_major, version_minr and version_extra?


There is no 'extra'.  The last two digits are the minor and everything before is the major.  Usually you'd use inequality comparisons so there'd be no point.  If here is a way beside parsing I'm not aware of it.

David J.

pgsql-general by date:

Previous
From: Igor Korot
Date:
Subject: Re: [GENERAL] Backward compatibility
Next
From: "David G. Johnston"
Date:
Subject: Re: [GENERAL] Backward compatibility