Unix Technical Forum

Re: Bumping libpq version number?

This is a discussion on Re: Bumping libpq version number? within the pgsql Hackers forums, part of the PostgreSQL category; --> Kurt Roeckx wrote: > On Fri, Mar 11, 2005 at 12:58:28PM -0500, Bruce Momjian wrote: > > Are we ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 04:01 AM
Bruce Momjian
 
Posts: n/a
Default Re: Bumping libpq version number?

Kurt Roeckx wrote:
> On Fri, Mar 11, 2005 at 12:58:28PM -0500, Bruce Momjian wrote:
> > Are we still bumping the libpq major version number for 8.0.2? I think
> > it is a bad idea because we will require too many client apps to be
> > recompiled, and we have had few problem reports.
> >
> > We do need to bump the major version number for 8.1 and I am doing that
> > now.
> >
> > One new problem I see is that changes to libpgport could affect client
> > apps that call libpq because they pull functions from pgport via libpq.
> > For example, now that snprintf is called pg_snprintf, my initdb failed
> > in the regression tests because the the new initdb binary used
> > pg_snprintf but the installed libpq (ld.so.conf) didn't have it yet.

>
> Does initdb call pg_snprintf directly? Or does it call some
> libpq function that calls it?


With the current CVS, initdb calls pg_snprintf() on my platform which
doesn't support %$ natively on my libc printf. Now, initdb could pull
from pgport itself but I think it pulled from libpq first. Perhaps we
should reorder how those libraries appear in the link line but I think
that would fix just this case, not the more general one of pg client
apps.

> > The bottom line is that we only used to require major libpq version
> > bumps when we changed the libpq API. Now, with libpgport, I am
> > concerned that changes in libpgport also will require a major version
> > bump. This adds support to the idea that we will have to do a major
> > libpq bump for every major release.

>
> Soname changes really should only happen in case of API or ABI
> changes and I think you really should try to avoid them. I'm not
> sure why you think it's required now.


We had the problem with 8.0.X where we remove get_progname from libpq
and psql and friends were pulling that from libpq in the past for 7.4.

> Also, I think it's alot better to actually do soname changes to
> libraries if things can break. I don't see having 2 library
> versions around as a problem. And I'd rather have something I
> just know is not going to work.


Yes, that is where I am leaning in this discussion because libpgport
varies much more frequently than the libpq API. However, changing the
link order should fix that so let me do that and see if it helps.

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

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:54 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com