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 1mYWTX-0000jH-D8 for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Oct 2021 16:42:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mYWTW-0006ID-25 for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Oct 2021 16:42:30 +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 1mYWTV-0006I5-QT; Thu, 07 Oct 2021 16:42:29 +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 1mYWTT-00027s-Kv; Thu, 07 Oct 2021 16:42:28 +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 197GgNCJ082164; Thu, 7 Oct 2021 12:42:23 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@lists.postgresql.org, Peter Eisentraut , pgsql-hackers Subject: Re: dfmgr additional ABI version fields In-reply-to: <45ED8985-0756-4FE3-B651-0EC431CF1445@anarazel.de> References: <55215fda-db31-a045-d6b7-d6f2d2dc9920@enterprisedb.com> <65011.1633621797@sss.pgh.pa.us> <45ED8985-0756-4FE3-B651-0EC431CF1445@anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 07 Oct 2021 09:32:10 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <82162.1633624943.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 07 Oct 2021 12:42:23 -0400 Message-ID: <82163.1633624943@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > On October 7, 2021 8:49:57 AM PDT, Tom Lane = >> I'm also kind of unclear on why we need to do anything about this >> in the community version. If someone has forked PG and changed >> APIs to the extent that extensions are unlikely to work, there's >> not much stopping them from also making the two-line change >> to fmgr.h that would be needed to guarantee that different magic >> struct contents are needed. > I can see two reasons. First, it'd probably allow stock pg to generate a= better error message when confronted with such a module. Second, there's = some value in signaling forks that they should change (or think about chan= ging), that field. Hmm, ok, I can buy the first of those arguments. Less sure about the second, but the first is reason enough. Can we make the addition be a string not a number, so that we could include something more useful than "1234" in the error message? Something like "Module is built for EDB v1234.56" seems like it'd be a lot more on-point to the average user, and it gets us out of having to design the ABI versioning scheme that a fork should use. regards, tom lane