pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: dfmgr additional ABI version fields
Date: Thu, 07 Oct 2021 11:49:57 -0400
Message-ID: <65011.1633621797@sss.pgh.pa.us> (raw)
In-Reply-To: <55215fda-db31-a045-d6b7-d6f2d2dc9920@enterprisedb.com>
References: <55215fda-db31-a045-d6b7-d6f2d2dc9920@enterprisedb.com>

Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
> 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.

Who would hand out these magic numbers?

If the answer is "choose a random one, it probably won't collide"
then I'm not sure why we need two fields.  You can choose a new
random number for each ABI version, if you're changing it faster
than once per PG major version.

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.

			regards, tom lane





view thread (14+ messages)  latest in thread

Message-ID: <65011.1633621797@sss.pgh.pa.us>
Permalink:  ../65011.1633621797@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/65011.1633621797@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, peter.eisentraut@enterprisedb.com
  Subject: Re: dfmgr additional ABI version fields
  In-Reply-To: <65011.1633621797@sss.pgh.pa.us>
  References: <55215fda-db31-a045-d6b7-d6f2d2dc9920@enterprisedb.com> <65011.1633621797@sss.pgh.pa.us>

* 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