From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: dfmgr additional ABI version fields
Date: Thu, 7 Oct 2021 11:27:48 +0200
Message-ID: <55215fda-db31-a045-d6b7-d6f2d2dc9920@enterprisedb.com> (raw)
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?
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: peter.eisentraut@enterprisedb.com
Subject: Re: dfmgr additional ABI version fields
In-Reply-To: <55215fda-db31-a045-d6b7-d6f2d2dc9920@enterprisedb.com>
References: <55215fda-db31-a045-d6b7-d6f2d2dc9920@enterprisedb.com>
* 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