pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: "postmaster became multithreaded" is reachable
Date: Thu, 23 Jan 2025 11:56:43 -0800
Message-ID: <20250123195643.88.nmisch@google.com> (raw)
In-Reply-To: <209558.1737658292@sss.pgh.pa.us>
References: <206317.1737656533@sss.pgh.pa.us>
	<20250123183837.79.nmisch@google.com>
	<209558.1737658292@sss.pgh.pa.us>

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





view thread (4+ messages)

Message-ID: <20250123195643.88.nmisch@google.com>
Permalink:  ../20250123195643.88.nmisch@google.com/
Also on:    postgresql.org/message-id/20250123195643.88.nmisch@google.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: noah@leadboat.com, tgl@sss.pgh.pa.us, pgsql-hackers@lists.postgresql.org
  Subject: Re: "postmaster became multithreaded" is reachable
  In-Reply-To: <20250123195643.88.nmisch@google.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox