On Thursday, July 20, 2017, Igor Korot <ikoro...@gmail.com> wrote:

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

Reply via email to