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 1jYZNU-0007fN-Lz for pgsql-hackers@arkaria.postgresql.org; Tue, 12 May 2020 18:11:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jYZNT-0006km-JW for pgsql-hackers@arkaria.postgresql.org; Tue, 12 May 2020 18:11:39 +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 1jYZNT-0006ke-DL for pgsql-hackers@lists.postgresql.org; Tue, 12 May 2020 18:11:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYZNQ-00006A-VE for pgsql-hackers@lists.postgresql.org; Tue, 12 May 2020 18:11:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 04CIBYaU031272; Tue, 12 May 2020 14:11:34 -0400 From: Tom Lane To: "Andrey M. Borodin" cc: pgsql-hackers@lists.postgresql.org Subject: Re: Our naming of wait events is a disaster. In-reply-to: <270FBE56-4F83-4FDE-BFFC-18EFF54DE30A@yandex-team.ru> References: <21247.1589296570@sss.pgh.pa.us> <270FBE56-4F83-4FDE-BFFC-18EFF54DE30A@yandex-team.ru> Comments: In-reply-to "Andrey M. Borodin" message dated "Tue, 12 May 2020 22:51:23 +0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31270.1589307094.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 12 May 2020 14:11:34 -0400 Message-ID: <31271.1589307094@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Andrey M. Borodin" writes: > 3. I think names observed in wait_event and wait_event_type should not d= uplicate information. i.e. "XidGenLock" is already "LWLock". Yeah, I'd been wondering about that too: we could strip the "Lock" suffix from all the names in the LWLock category, and make pg_stat_activity output a bit narrower. There are a lot of other things that seem inconsistent, but I'm not sure how much patience people would have for judgment-call renamings. An example is that "ProcSignalBarrier" is under IO, but why? Shouldn't it be reclassified as IPC? Other than that, *almost* all the IO events are named SomethingRead, SomethingWrite, or SomethingSync, which makes sense to me ... should we insist they all follow that pattern? Anyway, I was just throwing this idea out to see if there would be howls of "you can't rename anything" anguish. Since there haven't been so far, I'll spend a bit more time and try to create a concrete list of possible changes. regards, tom lane