Re: Psycopg2 built on local system, ok when distributed? - Mailing list psycopg

From Amos Anderson
Subject Re: Psycopg2 built on local system, ok when distributed?
Date
Msg-id FC084024-DD8A-4765-B84F-76FE9B2F027E@protabit.com
Whole thread Raw
In response to Re: Psycopg2 built on local system, ok when distributed?  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: Psycopg2 built on local system, ok when distributed?  (Adrian Klaver <adrian.klaver@aklaver.com>)
List psycopg
Hi Adrian --

To confirm, I'm interested in which version(s) of libpq are compatible with a particular _psycopg.so. According to this page:
PostgreSQL version X.Y.Z says that changing "X.Y" is a major release, while changing "Z" is a minor release. So should I be safe to use a particular _psycopg.so with different minor releases within the same major release? Another option I suppose would be to bundle libpq with my binary distribution since (as Daniele PM'd me) I can connect to any PostgreSQL server.

Thanks!
Amos.



On Sep 27, 2014, at 11:42 AM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:

On 09/27/2014 11:24 AM, Amos Anderson wrote:
Hi Psycopg --

I'm researching putting together a binary distribution of my software, which includes psycopg2. When psycopg2 compiles, it links to postgresql. If I linked to PostgreSQL 9.3.3 when I built psycopg2 on my systems, which version(s) of PosgreSQL are compatible on other user's systems? Or should I just expect other users to build psycopg2 on their own system?

http://initd.org/psycopg/docs/install.html#install-from-source

Note

The libpq header files used to compile psycopg2 should match the version of the library linked at runtime. If you get errors about missing or mismatching libraries when importing psycopg2 check (e.g. using ldd) if the module psycopg2/_psycopg.so is linked to the right libpq.so.



Thanks!
Amos.



--
Adrian Klaver
adrian.klaver@aklaver.com


--
Sent via psycopg mailing list (psycopg@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/psycopg

psycopg by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Psycopg2 built on local system, ok when distributed?
Next
From: Adrian Klaver
Date:
Subject: Re: Psycopg2 built on local system, ok when distributed?