Re: Which header and lib files to use when compiling libpq-code? - Mailing list pgsql-general

From Tom Lane
Subject Re: Which header and lib files to use when compiling libpq-code?
Date
Msg-id 6102.1240850286@sss.pgh.pa.us
Whole thread Raw
In response to Re: Which header and lib files to use when compiling libpq-code?  (Kynn Jones <kynnjo@gmail.com>)
List pgsql-general
Kynn Jones <kynnjo@gmail.com> writes:
> On Mon, Apr 27, 2009 at 11:10 AM, Martijn van Oosterhout
> <kleptog@svana.org>wrote:
>> In general you don't need to match the server version, the protocol
>> hasn't changed much in a while so as long as it's less than a few years
>> old it'll work.

> This statement contradicts the experience I described in my original post:
> the choice of header and/or library files is absolutely critical.  The wrong
> choice lead to very bizarre connection failures.

What that probably means is you picked a header file that didn't match
the libpq.so shared library version.  Martijn's statement that libpq
is insensitive to the *server* version is generally correct.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: find column OID types with information schema?
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Which header and lib files to use when compiling libpq-code?