Re: Let's get rid of the separate minor version numbers for shlibs - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Let's get rid of the separate minor version numbers for shlibs
Date
Msg-id b0d33694-01c0-8ee7-1a8f-2599b8d3fab9@2ndquadrant.com
Whole thread Raw
In response to Re: Let's get rid of the separate minor version numbers for shlibs  (Stephen Frost <sfrost@snowman.net>)
Responses Re: Let's get rid of the separate minor version numbers for shlibs  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Let's get rid of the separate minor version numbers for shlibs  (Greg Stark <stark@mit.edu>)
List pgsql-hackers
On 8/15/16 5:11 PM, Stephen Frost wrote:
> Eh?  Last I checked, we needed minor version bumps to ensure that
> binaries compiled against later versions, which might use newer symbols,
> don't try to link against older libraries (which wouldn't have those
> symbols).

Let's review:

What we install is

libpq.so.5.8 (actual file)
libpq.so.5 -> libpq.so.5.8
libpq.so -> libpq.so.5.8

The second one is the one used at run-time, looked up by SONAME.

The third one is the one used at build time, because -lpq means look for
libpq.so.

If we instead installed

libpq.so.5 (actual file)
libpq.so -> libpq.so.5

nothing would effectively change.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: Index Onlys Scan for expressions
Next
From: Josh Berkus
Date:
Subject: Re: PSA: Systemd will kill PostgreSQL