Re: Backward compatibility

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Igor Korot <ikorot01(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Backward compatibility
Date: 2017-07-21 02:51:53
Message-ID: CAKFQuwZsMjEqFzLb0mCj4CF_ouufaLTc7EqdA8YjtTbygBtJVw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday, July 20, 2017, Igor Korot <ikorot01(at)gmail(dot)com> wrote:

> Hi, David,
>
> On Thu, Jul 20, 2017 at 10:23 PM, David G. Johnston
> <david(dot)g(dot)johnston(at)gmail(dot)com <javascript:;>> wrote:
> > On Thu, Jul 20, 2017 at 7:13 PM, Igor Korot <ikorot01(at)gmail(dot)com
> <javascript:;>> 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2017-07-21 02:57:33 Re: Backward compatibility
Previous Message Igor Korot 2017-07-21 02:46:05 Re: Backward compatibility