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 1mf3s6-0002OS-HN for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Oct 2021 17:34:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mf3s5-0003nL-Fc for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Oct 2021 17:34:53 +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 1mf3s5-0003nC-6y for pgsql-hackers@lists.postgresql.org; Mon, 25 Oct 2021 17:34:53 +0000 Received: from [93.188.3.37] (helo=smtp.outgoing.loopia.se) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mf3s1-0003jW-9e for pgsql-hackers@lists.postgresql.org; Mon, 25 Oct 2021 17:34:52 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 988AF2EA72DC for ; Mon, 25 Oct 2021 19:34:38 +0200 (CEST) Received: from s499.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 896F22E33DAE; Mon, 25 Oct 2021 19:34:38 +0200 (CEST) Received: from s474.loopia.se (unknown [172.22.191.5]) by s499.loopia.se (Postfix) with ESMTP id 852281CE0529; Mon, 25 Oct 2021 19:34:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s934.loopia.se ([172.22.191.5]) by s474.loopia.se (s474.loopia.se [172.22.190.14]) (amavisd-new, port 10024) with LMTP id ojRqZJwOEhgj; Mon, 25 Oct 2021 19:34:38 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from smtpclient.apple (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s934.loopia.se (Postfix) with ESMTPSA id 2666E7D09C7; Mon, 25 Oct 2021 19:34:38 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: pgsql: Remove unused wait events. From: Daniel Gustafsson In-Reply-To: <4050629.1635182306@sss.pgh.pa.us> Date: Mon, 25 Oct 2021 19:34:37 +0200 Cc: Robert Haas , Amit Kapila , PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <1611CCCC-E0E8-4A74-A95B-80ECCE987145@yesql.se> References: <4047667.1635179918@sss.pgh.pa.us> <4050629.1635182306@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Host-Lookup-Failed: Reverse DNS lookup failed for 93.188.3.37 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 25 Oct 2021, at 19:18, Tom Lane wrote: >=20 > Robert Haas writes: >> ... But while I agree it's good to remove unused stuff in the >> master, it doesn't seem like we really need to back-patch it. >=20 > Yeah, exactly. I don't see any benefit that's commensurate with > even a small risk of breaking extensions --- and apparently, in > this case that's not a risk but a certainty. Since this will cause integer values to have different textual enum = value representations in 14 and 15+, do we want to skip two numbers by = assigning the next wait event the integer value of WAIT_EVENT_WAL_WRITE incremented by = three? Or enum integer reuse not something we guarantee against across major = versions? -- Daniel Gustafsson https://vmware.com/