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 1mYYsJ-0006H6-99 for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Oct 2021 19:16:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mYYsI-0004yj-0A for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Oct 2021 19:16:14 +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 1mYYsH-0004ya-Oe; Thu, 07 Oct 2021 19:16:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYYsB-0005rp-EE; Thu, 07 Oct 2021 19:16:13 +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 197JFMN5163152; Thu, 7 Oct 2021 15:15:22 -0400 From: Tom Lane To: Chapman Flack cc: Andres Freund , pgsql-hackers@lists.postgresql.org, Peter Eisentraut , pgsql-hackers Subject: Re: dfmgr additional ABI version fields 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> Comments: In-reply-to Chapman Flack message dated "Thu, 07 Oct 2021 12:56:22 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <163150.1633634122.1@sss.pgh.pa.us> Date: Thu, 07 Oct 2021 15:15:22 -0400 Message-ID: <163151.1633634122@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Chapman Flack 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