Skip site navigation (1) Skip section navigation (2)

Re: libpq API incompatibility between 7.4 and 8.0

From: Martin Pitt <mpitt(at)debian(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org, Peter Eisentraut <peter_e(at)gmx(dot)net>
Subject: Re: libpq API incompatibility between 7.4 and 8.0
Date: 2005-02-02 20:42:28
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-patches
Hi Tom!

Tom Lane [2005-02-02 12:01 -0500]:
> Martin Pitt <mpitt(at)debian(dot)org> writes:
> > What would you propose as a solution?
> Do nothing.  

That's unfortunately not an option.

> The problem you are raising isn't very serious since
> RPM-style installations don't support concurrent installation of
> multiple PG versions anyway.  That being the case, it doesn't really
> matter whether 8.0 psql can use a 7.4 library or vice versa.

That's exactly the point I want to change for Debian, I work on a
structure which permits to run several clusters of different versions
in parallel (see [1]). We now have a /usr/lib/ for 7.4, and
we can't have a _second_ incompatible /usr/lib/ for 8.0.

Sorry, but that's just the way how shared libraries work. SONAMEs are
for API compatibility and it becomes _very_ hard to workaround broken

> To do otherwise would essentially amount to deciding that get_progname
> is part of the exported API of libpq forevermore. 

That's not true. It must stay part of the exported API for SONAME 3 of
libpq, not for anything else. 

> That's not something I'm willing to buy into.  It was a mistake that
> it was done that way in 7.4, and I want to rectify that mistake
> before it gets any more entrenched.

Then please release 8.0.2 with a SONAME 4. Would you consider this?

Thanks a lot and have a nice day!



Martin Pitt             
Ubuntu Developer  
Debian GNU/Linux Developer

In response to

pgsql-hackers by date

Next:From: Oliver JowettDate: 2005-02-02 20:45:02
Subject: Re: [NOVICE] Last ID Problem
Previous:From: Merlin MoncureDate: 2005-02-02 20:19:27
Subject: Re: [NOVICE] Last ID Problem

pgsql-patches by date

Next:From: Peter EisentrautDate: 2005-02-02 22:00:07
Subject: Re: libpq API incompatibility between 7.4 and 8.0
Previous:From: Heikki LinnakangasDate: 2005-02-02 19:41:15
Subject: Refactoring lock.c

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group