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 1tb2Ik-007QK3-0I for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Jan 2025 18:51:38 +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 1tb2Ii-002SpR-9l for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Jan 2025 18:51:36 +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 1tb2Ii-002SpJ-0F for pgsql-hackers@lists.postgresql.org; Thu, 23 Jan 2025 18:51:36 +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 1tb2If-0018ie-2T for pgsql-hackers@lists.postgresql.org; Thu, 23 Jan 2025 18:51:35 +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 50NIpWB9209559; Thu, 23 Jan 2025 13:51:32 -0500 From: Tom Lane To: Noah Misch cc: pgsql-hackers@lists.postgresql.org Subject: Re: "postmaster became multithreaded" is reachable In-reply-to: <20250123183837.79.nmisch@google.com> References: <206317.1737656533@sss.pgh.pa.us> <20250123183837.79.nmisch@google.com> Comments: In-reply-to Noah Misch message dated "Thu, 23 Jan 2025 10:38:37 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <209557.1737658292.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 23 Jan 2025 13:51:32 -0500 Message-ID: <209558.1737658292@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Noah Misch writes: > On Thu, Jan 23, 2025 at 01:22:13PM -0500, Tom Lane wrote: >> An alternative idea (that maybe should also be done in PostmasterMain) >> is to report the HINT only #ifdef __darwin__ and on other platforms >> use the "Please report a bug" text. > I gather pthread_is_threaded_np() is still macOS-only, in which case the > !darwin branch would be future-proofing only. Ah, I had not realized that. Perhaps the comments about this code should mention that? > Another alternative would be to track whether we reached the startup-tim= e > check, emitting a message at exit only if we did reach the startup-time = check. > If a postmaster passes the startup-time check and fails the exit-time ch= eck, > changing the environment won't help. Even so, I'm content with your fir= st > proposal. Yeah, seems like overcomplication. Let's go with the simple way. regards, tom lane