"Greg Sabino Mullane" <greg(at)turnstep(dot)com> writes:
> Would something like this be acceptable?:
> (int) PQversionNumber
> as a simple interface to the sversion variable?
I think "version" is a little too nonspecific. We already have
extern int PQprotocolVersion(const PGconn *conn);
so consistency would suggest
extern int PQserverVersion(const PGconn *conn);
regards, tom lane