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 1mYPh3-0002TY-DM for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Oct 2021 09:28:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mYPh2-000304-AM for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Oct 2021 09:28:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYPh1-0002zw-HW for pgsql-hackers@lists.postgresql.org; Thu, 07 Oct 2021 09:28:00 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYPgw-0000uP-QW for pgsql-hackers@postgresql.org; Thu, 07 Oct 2021 09:27:59 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 230EF5C013C for ; Thu, 7 Oct 2021 05:27:52 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 07 Oct 2021 05:27:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=C4opT0 1OmywTcucvVQ0O0bmZ9P3046jLKC9B1+9faa0=; b=fz8aE95LP/sxbMGeqV6w9J Z7jJwEXFjuZgRNtf1jxqSrssf+zCE3duBb7Hw8nqU3rZQgRl39ytLgi58SsNcQrH id73zy7ZAak0JkYx8Sk6cv4E311cQHe7M+TLqWSXxoMh0Q/CqQti9PzTnzD93RzK fR8d/+F4Ik0eO2FS37lsStrl75HadhHqJtmHoM3luZKbDm1I3gbyXmK75hB+q1+J +qckIPfQQMvKPgz7r2OLyAge+Xp3M/BmU8dOft0sZQ8y5FRb0X47bTSijRZA8coT TYr7BUoAGrrF92qLe+oLqB0U+zPzuTyFGp6564zJgFBetK+dzoP0mPM9+kVsEvbg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudelkedgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhuffvkffffgggtgfgsehtjeertd dtfeejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgv ihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhmqeenucggtffrrghtth gvrhhnpeeiieevjeelieehgfektdehteehheeuvefggfeiveffgffhheevgefhvdegfeel vdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvg htvghrrdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 7 Oct 2021 05:27:51 -0400 (EDT) From: Peter Eisentraut Subject: dfmgr additional ABI version fields To: pgsql-hackers Message-ID: <55215fda-db31-a045-d6b7-d6f2d2dc9920@enterprisedb.com> Date: Thu, 7 Oct 2021 11:27:48 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk When producing a forked version of PostgreSQL, there is no straightforward way to enforce that users don't accidentally load modules built for the non-forked (standard, community) version. You can only distinguish by PostgreSQL major version and a few compile-time settings. (see internal_load_library(), Pg_magic_struct) Depending on the details, mixing and matching might even work, until it doesn't, so this is a bad experience. I'm thinking about adding two more int fields to Pg_magic_struct: a product or vendor magic number, and an ABI version that can be used freely within a product/vendor. Would anyone else have use for this? Any thoughts?