OSDN Git Service

Add PQlibVersion() function to libpq
authorMagnus Hagander <magnus@hagander.net>
Wed, 22 Dec 2010 13:23:56 +0000 (14:23 +0100)
committerMagnus Hagander <magnus@hagander.net>
Wed, 22 Dec 2010 13:23:56 +0000 (14:23 +0100)
commitde9a4c27fefcc0d104bc9c97f4a93a49a25bf66d
treef35f5981172774dde3bac35c530eb9e190c6b0bb
parent32ba2b516066688ff56e6d62a7ff4a01c88f5700
Add PQlibVersion() function to libpq

This function is like the PQserverVersion() function except
it returns the version of libpq, making it possible for a client
program or driver to determine which version of libpq is in
use at runtime, and not just at link time.

Suggested by Harald Armin Massa and several others.
doc/src/sgml/libpq.sgml
src/interfaces/libpq/exports.txt
src/interfaces/libpq/fe-misc.c
src/interfaces/libpq/libpq-fe.h