Re: querying the version of libpq - Mailing list pgsql-general

From Greg Sabino Mullane
Subject Re: querying the version of libpq
Date
Msg-id 0f0dc6d8694982a930e6412196effce0@biglumber.com
Whole thread Raw
In response to Re: querying the version of libpq  (Peter Geoghegan <peter.geoghegan86@gmail.com>)
List pgsql-general
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160


> I would imagine that most libpq wrapping drivers use libpq's
> PQserverVersion(), which returns an integer that looks like 90000.

Yeah, I'm familiar with that (I wrote it :) but it's not useful
here for two reasons:

1) It's not available on older versions

2) It returns the *target* version, not the *compiled* version.
In other words, it requires an existing PGconn object.

- --
Greg Sabino Mullane greg@turnstep.com
End Point Corporation http://www.endpoint.com/
PGP Key: 0x14964AC8 201010051212
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iEYEAREDAAYFAkyrTrsACgkQvJuQZxSWSsh+rACgkvzm7HFWO4X6jHy68M4lAr74
vSoAnRzG5F+pML4IQfQxCl64b3eiNbRm
=JL6x
-----END PGP SIGNATURE-----



pgsql-general by date:

Previous
From: Chris Velevitch
Date:
Subject: Re: Group By Question
Next
From: "Massa, Harald Armin"
Date:
Subject: Re: querying the version of libpq