pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: pgsql-hackers@postgresql.org
Cc: Michael Meskes <meskes@postgresql.org>
Subject: Re: Let's get rid of the separate minor version numbers for shlibs
Date: Mon, 15 Aug 2016 20:31:21 -0400
Message-ID: <2366.1471307481@sss.pgh.pa.us> (raw)
In-Reply-To: <b0d33694-01c0-8ee7-1a8f-2599b8d3fab9@2ndquadrant.com>
References: <21969.1471287988@sss.pgh.pa.us>
	<11ac2767-ac84-1da1-7c6e-75e44011e8e2@2ndquadrant.com>
	<20160815211155.GL4028@tamriel.snowman.net>
	<b0d33694-01c0-8ee7-1a8f-2599b8d3fab9@2ndquadrant.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> 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.

Right, and that is all exactly per distro recommendations, at least
for Red Hat, and I'm pretty sure other distros too.  This has not
been changed recently TTBOMK.  See for example

http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html

The only argument that particular document offers for including the
minor number is that it makes it easier to see which specific
version you have installed.  That's not much, but it's not
nothing either.  There might be other reasons I'm not remembering.

Also, SO_MINOR_VERSION is included in the shlib name for most
Unix-oid platforms, not just Linux.  Even if we were to conclude
this was no longer recommended practice for Linux, I doubt we
should unilaterally drop the practice everywhere.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (10+ messages)  latest in thread

Message-ID: <2366.1471307481@sss.pgh.pa.us>
Permalink:  ../2366.1471307481@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2366.1471307481@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com, sfrost@snowman.net, meskes@postgresql.org
  Subject: Re: Let's get rid of the separate minor version numbers for shlibs
  In-Reply-To: <2366.1471307481@sss.pgh.pa.us>
  References: <21969.1471287988@sss.pgh.pa.us> <11ac2767-ac84-1da1-7c6e-75e44011e8e2@2ndquadrant.com> <20160815211155.GL4028@tamriel.snowman.net> <b0d33694-01c0-8ee7-1a8f-2599b8d3fab9@2ndquadrant.com> <2366.1471307481@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox