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 1ubPGy-000QIV-LT for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Jul 2025 19:55:36 +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 1ubPGw-00Cwo1-MT for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Jul 2025 19:55:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ubPGw-00Cwnt-Cf for pgsql-hackers@lists.postgresql.org; Mon, 14 Jul 2025 19:55:35 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ubPGv-007Hwm-1M for pgsql-hackers@postgresql.org; Mon, 14 Jul 2025 19:55:34 +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 56EJtWkK717490; Mon, 14 Jul 2025 15:55:32 -0400 From: Tom Lane To: Nathan Bossart cc: Sami Imseih , Bertrand Drouvot , pgsql-hackers Subject: Re: Improve LWLock tranche name visibility across backends In-reply-to: References: Comments: In-reply-to Nathan Bossart message dated "Mon, 14 Jul 2025 14:46:50 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <717488.1752522932.1@sss.pgh.pa.us> Date: Mon, 14 Jul 2025 15:55:32 -0400 Message-ID: <717489.1752522932@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nathan Bossart writes: > Ah, I missed the problem with postmaster. Could we have the first backend > that needs to access the table be responsible for creating it and > populating it with the built-in/requested-at-startup entries? Also, is > there any chance that postmaster might need to access the tranche names? Seems quite hazardous to let the postmaster get involved with such a data structure. If it seems to need to, we'd better rethink where to put the functionality that needs the access. regards, tom lane