Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o4k4L-00083L-5z for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Jun 2022 14:13:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o4k4J-0001Vp-Vr for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Jun 2022 14:13:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o4k4J-0001Vg-N0 for pgsql-hackers@lists.postgresql.org; Fri, 24 Jun 2022 14:13:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o4k4H-0005nr-IO for pgsql-hackers@postgresql.org; Fri, 24 Jun 2022 14:13:54 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 25OEDpp5348726; Fri, 24 Jun 2022 10:13:51 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-hackers Subject: Re: Unify DLSUFFIX on Darwin In-reply-to: References: <3336874.1655905520@sss.pgh.pa.us> Comments: In-reply-to Peter Eisentraut message dated "Fri, 24 Jun 2022 13:26:54 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <348724.1656080031.1@sss.pgh.pa.us> Date: Fri, 24 Jun 2022 10:13:51 -0400 Message-ID: <348725.1656080031@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Eisentraut writes: > On 22.06.22 15:45, Tom Lane wrote: >> Doesn't this amount to a fundamental ABI break for extensions? >> Yesterday they had to ship foo.so, today they have to ship foo.dylib. > Extensions generally only load the module files using the extension-free > base name. And if they do specify the extension, they should use the > provided DLSUFFIX variable and not hardcode it. So I don't see how this > would be a problem. Hm. Since we force people to recompile extensions for new major versions anyway, maybe it'd be all right. I'm sure there is *somebody* out there who will have to adjust their build scripts, but it does seem like it shouldn't be much worse than other routine API changes. [ thinks for a bit... ] Might be worth double-checking that pg_upgrade doesn't get confused in a cross-version upgrade. A quick grep doesn't find that it refers to DLSUFFIX anywhere, but it definitely does pay attention to extensions' shared library names. regards, tom lane