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 1pG1Ie-0001hc-6B for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Jan 2023 17:23:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pG1Id-00020U-2s for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Jan 2023 17:23:35 +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 1pG1Ic-0001zx-Px for pgsql-hackers@lists.postgresql.org; Thu, 12 Jan 2023 17:23:34 +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 1pG1Ia-00034i-MM for pgsql-hackers@lists.postgresql.org; Thu, 12 Jan 2023 17:23:33 +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 30CHNT6C1144413; Thu, 12 Jan 2023 12:23:29 -0500 From: Tom Lane To: Alvaro Herrera cc: "Drouvot, Bertrand" , PostgreSQL Hackers Subject: Re: Remove nonmeaningful prefixes in PgStat_* fields In-reply-to: <20230112171252.xucefmthy5l4l2ec@alvherre.pgsql> References: <20230112171252.xucefmthy5l4l2ec@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Thu, 12 Jan 2023 18:12:52 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1144411.1673544209.1@sss.pgh.pa.us> Date: Thu, 12 Jan 2023 12:23:29 -0500 Message-ID: <1144412.1673544209@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera writes: > I don't like this at all. With these prefixes in place, it's much more > likely that you'll be able to grep the whole source tree and not run > into tons of false positives. If you remove them, that tends to be not > very workable. If we use these commits as precedent for expanding this > sort of renaming across the tree, we'll soon end up with a very > grep-unfriendly code base. +1, that was my immediate fear as well. regards, tom lane