Re: Psycopg2 built on local system, ok when distributed?

From: Amos Anderson <amos(dot)anderson(at)protabit(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: psycopg(at)postgresql(dot)org
Subject: Re: Psycopg2 built on local system, ok when distributed?
Date: 2014-09-28 21:20:57
Message-ID: FC084024-DD8A-4765-B84F-76FE9B2F027E@protabit.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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:
http://www.postgresql.org/support/versioning/
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(dot)klaver(at)aklaver(dot)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(dot)klaver(at)aklaver(dot)com
>
>
> --
> Sent via psycopg mailing list (psycopg(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/psycopg

In response to

Responses

Browse psycopg by date

  From Date Subject
Next Message Adrian Klaver 2014-09-28 21:49:33 Re: Psycopg2 built on local system, ok when distributed?
Previous Message Adrian Klaver 2014-09-27 18:42:54 Re: Psycopg2 built on local system, ok when distributed?