Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qRwPJ-003gF8-NQ for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Aug 2023 15:08:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qRwPI-008UWd-57 for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Aug 2023 15:08:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qRwPH-008UVv-SS for pgsql-hackers@lists.postgresql.org; Fri, 04 Aug 2023 15:08:00 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qRwPD-000Yfg-Ln for pgsql-hackers@lists.postgresql.org; Fri, 04 Aug 2023 15:07:57 +0000 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-3177163aa97so1899205f8f.0 for ; Fri, 04 Aug 2023 08:07:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691161673; x=1691766473; h=content-transfer-encoding:to:subject:from:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=M2zyoV23kn/kUdrf4zctEw1nRH3XMJae35LrFPnDuNg=; b=ABvLBpL8oLZiXfH+5wQO6LbqNSiBCXhBAKEWXS5k5N3sOJrMVjqmIO/FG4Jwy9oEac AA8epQyAJwSEJDRog/gEkP44G0ZzMYRSoiA/nAuTyHf3DkVPSrYdV+wLhJfyUvqBQzyE fwCS5gX36c0OKyIj6igqR0nTXhhJhIVYQ4oakFgtRUrAK7Ksv9KTHPpFRaGQggLFyXSc OMARLVVyzP+nXXxlszlzuYEpctcjuUW5PK9omJCieXZOoWzlexBmUzpkfW4Lx5gHHb8I kWSTOFa9YgaCN6E/LqA/TNNwvyy5B9fj8DCWYF2HMR/C7hfdJIblIzAh2+KfsFI24omx A3UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691161673; x=1691766473; h=content-transfer-encoding:to:subject:from:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=M2zyoV23kn/kUdrf4zctEw1nRH3XMJae35LrFPnDuNg=; b=JR5/0TtqEggbpY+AcOmyoTaIla/S/70GSGNxRRhkM0pojaL0nnERepssANnTsMk6gV 0iZZz7Bv2t1LoCU7nkPaOw7U5PcX09WHGMmZd/sbTDRKuh2NfEi4p8iRy6vxDJ3CjaQc mX8kVpHRakurdy9Zw8a0JuJmnGyVOc1i3cxuIdXCNmotcDiUAgOy5GE9tKR+kSMrVocY NMPAZbi1Q0kpROV+2EQAZlXn4MbU0vxgSIPZ5BcGz4v4oDuxUOXxaey1yMIQIL8e0bJ1 xfdFeNp6ArMFzEABzRrLwU5b6QhX9VethVkO5ZPKSRsEFe9WhzJTVY7hof6Z555u0JSZ pvxA== X-Gm-Message-State: AOJu0Yxu0qw0mAOrPYYDWlCJ5kzpqYdZbqxlndp2xn4x70HUkDRIVpZY lKVg+5M6zM3K9vfxq8IseAlUfoRmVO0= X-Google-Smtp-Source: AGHT+IGS4kBddWuQKxyhgrOt16Y5WXy/KutuiBCY09F9tnufym8RHk+bLGDGRmiVMfKxtPdJ5z1t8A== X-Received: by 2002:adf:fec9:0:b0:314:362d:6d7b with SMTP id q9-20020adffec9000000b00314362d6d7bmr1706211wrs.19.1691161672868; Fri, 04 Aug 2023 08:07:52 -0700 (PDT) Received: from ?IPV6:2a01:cb11:55e:1700:b990:c4cc:ef8a:a310? ([2a01:cb11:55e:1700:b990:c4cc:ef8a:a310]) by smtp.gmail.com with ESMTPSA id y16-20020adff150000000b0031762e89f94sm2698697wro.117.2023.08.04.08.07.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Aug 2023 08:07:52 -0700 (PDT) Message-ID: <701f45b5-13a3-6d75-cd24-835cc0716ecb@gmail.com> Date: Fri, 4 Aug 2023 17:07:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: "Drouvot, Bertrand" Subject: "duplicated" wait events To: PostgreSQL Hackers Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi hackers, while working on the new system catalog pg_wait_event (see [1]) I noticed that some wait events are currently "duplicated": postgres=# select wait_event_name,count(*) from pg_wait_event group by wait_event_name having count(*) > 1; wait_event_name | count -----------------+------- SyncRep | 2 WALWrite | 2 (2 rows) Indeed: SynRep currently appears in "IPC" and "LWLock" (see [2]) WALWrite currently appears in "IO" and "LWLock" (see [2]) I think that can lead to confusion and it would be better to avoid duplicate wait event name across Wait Class (and so fix those 2 ones above), what do you think? [1]: https://www.postgresql.org/message-id/0e2ae164-dc89-03c3-cf7f-de86378053ac%40gmail.com [2]: https://www.postgresql.org/docs/current/monitoring-stats.html Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com