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 1oAzfU-00014w-JG for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 20:06:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oAzfT-0000le-Cv for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 20:06:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAzdW-0004DK-Lr for pgsql-hackers@lists.postgresql.org; Mon, 11 Jul 2022 20:04:06 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAzdU-0001xl-Bw for pgsql-hackers@postgresql.org; Mon, 11 Jul 2022 20:04:05 +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 26BK40EM1231811; Mon, 11 Jul 2022 16:04:00 -0400 From: Tom Lane To: Andres Freund cc: Peter Eisentraut , David Rowley , pgsql-hackers Subject: Re: automatically generating node support functions In-reply-to: <20220711182915.jd2ibajdcbncqdqd@awork3.anarazel.de> References: <3302658.1657288366@sss.pgh.pa.us> <611d2e! 93-6330-47fa-0970-72316aed50f2@enterprisedb.com> <3488143.1657310625@sss.pgh.pa.us> <11148777-fbe2-5188-195d-48f5083573c5@enterprisedb.com> <20220710214622.haiektrjzisob6rl@awork3.anarazel.de> <815831.1657494597@sss.pgh.pa.us> <45f508cb-e30b-c252-e081-4548deafa34c@enterprisedb.com> <1116889.1657553859@sss.pgh.pa.us> <1201553.1657562258@sss.pgh.pa.us> <20220711182915.jd2ibajdcbncqdqd@awork3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Mon, 11 Jul 2022 11:29:15 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1231809.1657569840.1@sss.pgh.pa.us> Date: Mon, 11 Jul 2022 16:04:00 -0400 Message-ID: <1231810.1657569840@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > Additionally, I think we've had to add tags to the enum in minor releases > before and I'm afraid this now would end up looking even more awkward? Peter and I already had a discussion about that upthread --- we figured that if there's a way to manually assign a nodetag's number, you could use that option when you have to add a tag in a stable branch. We didn't actually build out that idea, but I can go do that, if we can solve the more fundamental problem of keeping the autogenerated numbers stable. One issue with that idea, of course, is that you have to remember to do it like that when back-patching a node addition. Ideally there'd be something that'd carp if the last autogenerated tag moves in a stable branch, but I'm not very sure where to put that. regards, tom lane