Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZSJJ-0001rd-Ch for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Aug 2016 00:32:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bZSJI-00089H-W1 for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Aug 2016 00:32:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bZSHv-0005Ny-AI for pgsql-hackers@postgresql.org; Tue, 16 Aug 2016 00:31:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bZSHr-0007Xy-52; Tue, 16 Aug 2016 00:31:26 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u7G0VL99002367; Mon, 15 Aug 2016 20:31:21 -0400 From: Tom Lane To: Peter Eisentraut cc: Stephen Frost , pgsql-hackers@postgresql.org, Michael Meskes Subject: Re: Let's get rid of the separate minor version numbers for shlibs In-reply-to: References: <21969.1471287988@sss.pgh.pa.us> <11ac2767-ac84-1da1-7c6e-75e44011e8e2@2ndquadrant.com> <20160815211155.GL4028@tamriel.snowman.net> Comments: In-reply-to Peter Eisentraut message dated "Mon, 15 Aug 2016 18:45:35 -0400" Date: Mon, 15 Aug 2016 20:31:21 -0400 Message-ID: <2366.1471307481@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Peter Eisentraut 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