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 1qRwPk-003gGZ-Li for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Aug 2023 15:08:28 +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 1qRwPj-008WWy-1z for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Aug 2023 15:08:27 +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 1qRwPi-008WWp-P2 for pgsql-hackers@lists.postgresql.org; Fri, 04 Aug 2023 15:08:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qRwPg-000Yg8-MI for pgsql-hackers@lists.postgresql.org; Fri, 04 Aug 2023 15:08:26 +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 374F8LdD3658242; Fri, 4 Aug 2023 11:08:21 -0400 From: Tom Lane To: "Drouvot, Bertrand" cc: PostgreSQL Hackers Subject: Re: WIP: new system catalog pg_wait_event In-reply-to: <0e2ae164-dc89-03c3-cf7f-de86378053ac@gmail.com> References: <0e2ae164-dc89-03c3-cf7f-de86378053ac@gmail.com> Comments: In-reply-to "Drouvot, Bertrand" message dated "Fri, 04 Aug 2023 16:22:54 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3658240.1691161701.1@sss.pgh.pa.us> Date: Fri, 04 Aug 2023 11:08:21 -0400 Message-ID: <3658241.1691161701@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Drouvot, Bertrand" writes: > Now that fa88928470 generates automatically code and documentation > related to wait events, why not exposing the wait events description > through a system catalog relation? I think you'd be better off making this a view over a set-returning function. The nearby work to allow run-time extensibility of the set of wait events is not going to be happy with a static catalog. regards, tom lane