Re: How to check the postgresql version

From: "Greg Sabino Mullane" <greg(at)turnstep(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: How to check the postgresql version
Date: 2004-11-23 02:27:00
Message-ID: ddb13057cb111f37a2a915074a1b9f8a@biglumber.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)turnstep(dot)com
PGP Key: 0x14964AC8 200411222127
-----BEGIN PGP SIGNATURE-----

iD4DBQFBoqBJvJuQZxSWSsgRAleLAJQOmBAN69x7A/79IGiAV6T0GZt5AKDDDTFw
WWXPNFSsUp/iRNgM/Mgy1g==
=QV4u
-----END PGP SIGNATURE-----

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kenneth Marshall 2004-11-23 02:40:37 Re: [Testperf-general] Re: ExclusiveLock
Previous Message Dru 2004-11-23 00:52:04 Re: Can postgresql accept mutliple connections in the same