Re: "postmaster became multithreaded" is reachable

From: Noah Misch <noah(at)leadboat(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: "postmaster became multithreaded" is reachable
Date: 2025-01-23 19:56:43
Message-ID: 20250123195643.88.nmisch@google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Jan 23, 2025 at 01:51:32PM -0500, Tom Lane wrote:
> Noah Misch <noah(at)leadboat(dot)com> 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?

Sure, your committed comment works for me.

> > Another alternative would be to track whether we reached the startup-time
> > 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 check,
> > changing the environment won't help. Even so, I'm content with your first
> > proposal.
>
> Yeah, seems like overcomplication. Let's go with the simple way.

postgr.es/c/4f15759bdcddd23e874526a6b2c0ff86e0beb042 looks fine. Thanks.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2025-01-23 20:10:16 Re: Orphaned users in PG16 and above can only be managed by Superusers
Previous Message Tomas Vondra 2025-01-23 19:55:25 Re: Orphaned users in PG16 and above can only be managed by Superusers