Re: How to check the postgresql version - Mailing list pgsql-hackers

From Greg Sabino Mullane
Subject Re: How to check the postgresql version
Date
Msg-id ddb13057cb111f37a2a915074a1b9f8a@biglumber.com
Whole thread Raw
In response to How to check the postgresql version  (Ruey-Lung Hsiao <rlhsiao@gmail.com>)
List pgsql-hackers
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
It's not quite the same, but check out the libpq function
PQserverVersion, which returns the version in a standard
6-digit format, which can then be used to easily do
numeric comparisons. Look for "sversion" in interfaces/libpq/fe-exec.c
and PQserverVersion in interfaces/libpq/fe-connect.c for
more details.
- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200411222127
-----BEGIN PGP SIGNATURE-----
iD4DBQFBoqBJvJuQZxSWSsgRAleLAJQOmBAN69x7A/79IGiAV6T0GZt5AKDDDTFw
WWXPNFSsUp/iRNgM/Mgy1g==
=QV4u
-----END PGP SIGNATURE-----




pgsql-hackers by date:

Previous
From: Dru
Date:
Subject: Re: Can postgresql accept mutliple connections in the same
Next
From: "Barry Lind"
Date:
Subject: FW: [JDBC] Strange server error with current 8.0beta driver