Search Postgresql Archives

Re: Backward compatibility

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday, July 20, 2017, Igor Korot <ikorot01@xxxxxxxxx> wrote:
Hi, David,

On Thu, Jul 20, 2017 at 10:23 PM, David G. Johnston
<david.g.johnston@xxxxxxxxx> wrote:
> On Thu, Jul 20, 2017 at 7:13 PM, Igor Korot <ikorot01@xxxxxxxxx> 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.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux