pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Cc: SATYANARAYANA NARLAPURAM <satyanarlapuram@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: LockHasWaiters() crashes on fast-path locks
Date: Wed, 2 Sep 2026 13:55:38 +0900
Message-ID: <apesSthBQ_0CA7yR@paquier.xyz> (raw)
In-Reply-To: <apdli2Lgvi40GxEb@paquier.xyz>
References: <CAHg+QDe_=ZahnRx37bzrqYenKn_S5YDQ00fTfwe-ZUmjqO=qLg@mail.gmail.com>
	<CALj2ACUKM1KQC=NHESOJw=ZgjAXgxapJfAEovKN0n3ZF8Csr5w@mail.gmail.com>
	<CAHg+QDc4f8hEEXODN5H=ETfOzg9QqaPW17=W_jYtXQUcAwZ84A@mail.gmail.com>
	<CAHg+QDfH5ZD7-wEdMc4bS4-A=N3bymy0ckHXUHOwrN-bE9AmXw@mail.gmail.com>
	<CALj2ACX+FcBsWDfHthwTEW9dWyWxjR3itiD+Zu7tDQPEUADZzw@mail.gmail.com>
	<CA+Tgmob3mVc0LgKNtgy-MdDd9KLffzw1X=9qR8UaRmON0xJWNA@mail.gmail.com>
	<apdli2Lgvi40GxEb@paquier.xyz>

On Wed, Sep 02, 2026 at 08:53:47AM +0900, Michael Paquier wrote:
> Perhaps out-of-core code or extensions could make use of this API, but
> in my experience this usually points at possible optimizations in the
> backend core code.  I'd suggest to look at that first, perhaps, if
> you'd like to make LockHasWaiters() fast-path safe?

Oh, I have missed the argument about autoprewarm and pg_prewarm on
this thread:
https://www.postgresql.org/message-id/CALj2ACXXx9TwYzeP0cRnZKHz60yOYivcG7yiV=2FTC5chSVoOg@mail.gmail...

Sorry about that.  I'd be curious about a different case where this
could be used.  Without the other proposal this feels a bit dead when
taken independently..
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (10+ messages)  latest in thread

Message-ID: <apesSthBQ_0CA7yR@paquier.xyz>
Permalink:  ../apesSthBQ_0CA7yR@paquier.xyz/
Also on:    postgresql.org/message-id/apesSthBQ_0CA7yR@paquier.xyz

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: michael@paquier.xyz, robertmhaas@gmail.com, bharath.rupireddyforpostgres@gmail.com, satyanarlapuram@gmail.com
  Subject: Re: LockHasWaiters() crashes on fast-path locks
  In-Reply-To: <apesSthBQ_0CA7yR@paquier.xyz>
  References: <CAHg+QDe_=ZahnRx37bzrqYenKn_S5YDQ00fTfwe-ZUmjqO=qLg@mail.gmail.com> <CALj2ACUKM1KQC=NHESOJw=ZgjAXgxapJfAEovKN0n3ZF8Csr5w@mail.gmail.com> <CAHg+QDc4f8hEEXODN5H=ETfOzg9QqaPW17=W_jYtXQUcAwZ84A@mail.gmail.com> <CAHg+QDfH5ZD7-wEdMc4bS4-A=N3bymy0ckHXUHOwrN-bE9AmXw@mail.gmail.com> <CALj2ACX+FcBsWDfHthwTEW9dWyWxjR3itiD+Zu7tDQPEUADZzw@mail.gmail.com> <CA+Tgmob3mVc0LgKNtgy-MdDd9KLffzw1X=9qR8UaRmON0xJWNA@mail.gmail.com> <apdli2Lgvi40GxEb@paquier.xyz> <apesSthBQ_0CA7yR@paquier.xyz>

* 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