Re: share library version problems - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: share library version problems
Date
Msg-id 20060822210003.GB6555@svana.org
Whole thread Raw
In response to share library version problems  (Bryan White <bryan@arcamax.com>)
Responses Re: share library version problems
List pgsql-general
On Tue, Aug 22, 2006 at 12:26:53PM -0400, Bryan White wrote:
> I am having problems with my libpq programs crashing.  This seems to be
> a version incompatibility and I want to find out how to best proceed.

<snip>

> My dev server was running the same setup as the web server.  The
> difference is that it acts as its own database server.  I was
> uncomfortable running an older version of the server on my test system
> then on the live system.  So yesterday I removed the OS supplied
> PostgreSQL RPMs and installed 8.1.4 from RPMs on the PostgreSQL download
> site.
>
> Today I discovered that programs that I compile on my dev server will
> segfault when run on the live web server.

Can you provide the output of ldd? The libraries are supposed to be
reasonably compatable.

In any case, you should try to run both servers against the same set of
libs and headers. You can have multiple copies of libpq around and
select it at compile time. The client library doesn't really have to
match the server version...

Hope this helps,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: Inserting Data
Next
From: Tom Lane
Date:
Subject: Re: share library version problems