pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@kurilemu.de>
To: Nikolay Samokhvalov <nik@postgres.ai>
Cc: pgsql-hackers mailing list <pgsql-hackers@postgresql.org>
Cc: Antonin Houska <ah@cybertec.at>
Cc: mihailnikalayeu@gmail.com
Subject: Re: [PATCH] Avoid a REPACK worker startup hang
Date: Sun, 13 Sep 2026 15:12:33 +0200
Message-ID: <aqae1DPFOEy8ThRa@alvherre.pgsql> (raw)
In-Reply-To: <CAM527d9A7FBXJn7A3w2VAPq0Gojm7tnUDFMh1uwJitGfi2kNeQ@mail.gmail.com>

On 2026-Sep-13, Nikolay Samokhvalov wrote:

> Hi hackers,
> 
> On REL_19_STABLE at 6bc236c8, my automated (AI) harness reproduced a
> worker startup failure 3/3 times in each of two clusters. Start a
> disposable postmaster with a low RLIMIT_NPROC, open the leader connection,
> exceed that limit with same-UID helper processes, then run
> `repack (concurrently) t`.
> 
> The postmaster logs `could not fork background worker process: Resource
> temporarily unavailable`.

Hmm, this sounds related to the report here
https://www.postgresql.org/message-id/flat/CALj2ACVAxA9HxvFe8HSspTJ-UO4Aoz%3DkuQdZBeLrod0gqUxH3g%40m...
I tried your isolation test against Bharath's patch, and I see that the
error condition is reported correctly.  I haven't reviewed that patch.
I'll review that for push, maybe together with your proposed test
addition.

Thanks!

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/






view thread (3+ messages)  latest in thread

Message-ID: <aqae1DPFOEy8ThRa@alvherre.pgsql>
Permalink:  ../aqae1DPFOEy8ThRa@alvherre.pgsql/
Also on:    postgresql.org/message-id/aqae1DPFOEy8ThRa@alvherre.pgsql

 · 

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: alvherre@kurilemu.de, nik@postgres.ai, ah@cybertec.at, mihailnikalayeu@gmail.com
  Subject: Re: [PATCH] Avoid a REPACK worker startup hang
  In-Reply-To: <aqae1DPFOEy8ThRa@alvherre.pgsql>
  References: <CAM527d9A7FBXJn7A3w2VAPq0Gojm7tnUDFMh1uwJitGfi2kNeQ@mail.gmail.com> <aqae1DPFOEy8ThRa@alvherre.pgsql>

* 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