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

Re: libpq API incompatibility between 7.4 and 8.0

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>,PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>,Martin Pitt <mpitt(at)debian(dot)org>
Subject: Re: libpq API incompatibility between 7.4 and 8.0
Date: 2005-02-05 01:05:15
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-patches
Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> >> In short, fixing this the way Bruce wants to will be a nontrivial amount
> >> of effort.
> > psql actually calls get_progname().  Do we know that it will try to link
> > in the other functions from path.c?  I am unsure.
> I don't know of any commonly used linkers that link at granularity finer
> than one source file, and in any case for shared libraries the library
> is all-or-nothing.
> Grep shows that 7.4 psql does reference is_absolute_path, and 7.4
> pg_dumpall does reference last_path_separator, so at least three of the
> four are at issue.

Ewe, yep, that is a mess.

OK, so how will we handle this?  We will bump the major for 8.0.X.

Do we also hack libpq/Makefile to remove the 8.0.0 libpq?  If not, then
RPM folks will need to relink, but source installs will not, but they
will have to remove the 8.0.0 libpq if they also want to run 7.4.

As you can see it is the confusion that bothers me.  I am not sure how I
would write a coherent paragraph explaining this.

  Bruce Momjian                        |
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to


pgsql-hackers by date

Next:From: Bruce MomjianDate: 2005-02-05 01:28:15
Subject: Re: Patch Count?
Previous:From: Tom LaneDate: 2005-02-05 00:03:46
Subject: Re: Query optimizer 8.0.1 (and 8.0)

pgsql-patches by date

Next:From: Mahmoud TaghizadehDate: 2005-02-05 08:11:25
Subject: using strxfrm for having multi locale/please vote for adding this function in contribution
Previous:From: Tom LaneDate: 2005-02-04 21:41:51
Subject: Re: libpq API incompatibility between 7.4 and 8.0

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