pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Chapman Flack <chap@anastigmatix.net>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@lists.postgresql.org, 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 15:15:22 -0400
Message-ID: <163151.1633634122@sss.pgh.pa.us> (raw)
In-Reply-To: <615F26B6.1020805@anastigmatix.net>
References: <55215fda-db31-a045-d6b7-d6f2d2dc9920@enterprisedb.com>
	<65011.1633621797@sss.pgh.pa.us>
	<45ED8985-0756-4FE3-B651-0EC431CF1445@anarazel.de>
	<82163.1633624943@sss.pgh.pa.us>
	<615F26B6.1020805@anastigmatix.net>

Chapman Flack <chap@anastigmatix.net> writes:
> On 10/07/21 12:42, Tom Lane wrote:
>> 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?

> Just using a string like "EDB v" + something would probably rule out
> collisions in practice. To be more formal about it, something like
> the tag URI scheme [0] could be recommended.

Hmm.  Personally I'm more interested in the string being comprehensible to
end users than in whether there's any formal rule guaranteeing uniqueness.
I really doubt that we will have any practical problem with collisions,
so I'd rather go with something like "EnterpriseDB v1.2.3" than with
something like "tag:enterprisedb.com,2021:1.2.3".

Conceivably we could have two strings, or a printable string and
a chosen-at-random unique number (the latter not meant to be shown
to users).  Not sure it's worth the trouble though.

			regards, tom lane





view thread (14+ messages)  latest in thread

Message-ID: <163151.1633634122@sss.pgh.pa.us>
Permalink:  ../163151.1633634122@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/163151.1633634122@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, chap@anastigmatix.net, andres@anarazel.de, peter.eisentraut@enterprisedb.com
  Subject: Re: dfmgr additional ABI version fields
  In-Reply-To: <163151.1633634122@sss.pgh.pa.us>
  References: <55215fda-db31-a045-d6b7-d6f2d2dc9920@enterprisedb.com> <65011.1633621797@sss.pgh.pa.us> <45ED8985-0756-4FE3-B651-0EC431CF1445@anarazel.de> <82163.1633624943@sss.pgh.pa.us> <615F26B6.1020805@anastigmatix.net> <163151.1633634122@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