Re: querying the version of libpq

From: "Greg Sabino Mullane" <greg(at)turnstep(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: querying the version of libpq
Date: 2010-10-05 16:14:07
Message-ID: 0f0dc6d8694982a930e6412196effce0@biglumber.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers


-----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(at)turnstep(dot)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-----

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Massa, Harald Armin 2010-10-05 16:15:07 Re: querying the version of libpq
Previous Message Chris Velevitch 2010-10-05 16:08:55 Re: Group By Question

Browse pgsql-hackers by date

  From Date Subject
Next Message Massa, Harald Armin 2010-10-05 16:15:07 Re: querying the version of libpq
Previous Message Andrew Dunstan 2010-10-05 15:54:39 Re: configure gaps