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.96) (envelope-from ) id 1x5k0f-000FK2-0Y for pgsql-hackers@arkaria.postgresql.org; Sun, 13 Sep 2026 13:12:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x5k0e-008ouq-1X for pgsql-hackers@arkaria.postgresql.org; Sun, 13 Sep 2026 13:12:40 +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.96) (envelope-from ) id 1x5k0e-008ouT-0Q for pgsql-hackers@lists.postgresql.org; Sun, 13 Sep 2026 13:12:40 +0000 Received: from fhigh-b1-smtp.messagingengine.com ([202.12.124.152]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x5k0b-00000000Ay9-40mw for pgsql-hackers@postgresql.org; Sun, 13 Sep 2026 13:12:39 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id 4114D7A0066; Sun, 13 Sep 2026 09:12:36 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Sun, 13 Sep 2026 09:12:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm2; t=1789305156; x= 1789391556; bh=f+lQMcjFbegI6ovedOaWIak+/NvSAZtwFYyJ7YWWv3M=; b=v iPdAKInd7xJbLOE05zu/bI/Q7DgK5eecKsJYxRKCB5Zcb9NkyZLdGuAl+NMobUgB Tlz03C/+Rhc0fGjTzejf70g4nC596URbLcLiDZoF9H5kGqnxhodKbQ+l788h2Fbc a98r7t+ShGYEG4brwVD+3hFj+fLJif4kOdP1FmzAKfc+AqaFjbA57yjiSgGNI0d7 LdOx8CIN85+o3fEg3txb4fTsvjNr5crHAhMcZVioYz2lyjNFt5PyNEJT6mdB+pEM FW7G/GTod2/1aiED1k0gApxciM08GEc1AFpTKjCqlCoLaZ3BVeqy33yEv8G2prog TP+CVqgXCvww845Qxn30g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1789305156; x=1789391556; bh=f +lQMcjFbegI6ovedOaWIak+/NvSAZtwFYyJ7YWWv3M=; b=S8hSm367ogdln0634 rIdehLXONwcv69ROMHkTIJ7cAuSqWO7XrGw+vX0CTtdxFWlF5K8mHdPyWVqRnFWa cQcvJoDCNt9OHx+fnF6iydl2xjn1CRa09wlg+kpVhAS6WPv2as2asSg8qCgYDUyl fNWSUMQxzDPohtOwkzHkkniaWUB2Ajxv4DFVn+xP72QatSJmnmnUXZKcQOqXDieI 9ZBI36ULe6Ojv9D136ZXc5/ZzlPxdJPHpzVVbwtPN5lHj0nn/s+9zqtk3ZWmug+A cwlDmDk4dntARqTtFadJJoZmyRH7shM1iSVYYmCULFujrb8xbwge2vxJgi4WtdjM yRARQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTF9Mr+fTfszcGcNsLchMNxkwMBKkMjc63YadXxk4w3ot+9GTHB7qWKsOrjrQL37Tn mphSUR9kDs5DLZnsh7vz7x1MEBeiyYiJYgQIJqyTiVEXjSRMR8Y8odLm0zO+sBqSObmf+v ga28gY/hP0EMTsZ78I8fesd1vkBZfc6bdZVY5gYPJPXNXvBPlm4g+U7AGmMsgwBI1FbxRy nsfZwowO1tJZL7UQD5Ntx40MmUvGO1ucnnMkvZ4x8wjkMNy7ikBY0FALkP1MMTGkn6Jwqq fHGZMRWRec3qrdp8gNdqRRvxkXzASTFYdt3GtNTCxSmbfvqnHYzssJfYsTZKhi9eQCInoP zgIzEUKCnB1+YrM7bE/ZxxYj/pL76W/6HIb8UxmPGlUNugYVyy0WQNgGFVFXRTptuxRdTs hCfOjMmgiAoH6Qbr1Z9sC2DjAmCrkjIMFVqGLCfZFOiLLrePg34lbeSgJ8B2txKqgyzhgJ Mz2lTgVc424OsBEepMSZzIh78Og594nUugMoJ9V1U8jvvb58ppMtxvK5Cpg/6Cm8ASAmCn LYIUQ2DPGUjGa2QoKtbPBcRCz22+rNclcp5lLoffhdFNKU8tCDYqlSj+NN/nk7T/BLfzuA EKLG4JN14KRzUO5NoUgLzlxs9EBmRaF9m5DX8HPDdAKOI1ldHOo36yj86wlQ X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 13 Sep 2026 09:12:35 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1789305153; bh=nWX/3xOdE7StUNlro2N6m2fJwc4m4QDemIdHOZ9depo=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=LNzn2wNqISzm/GiiEbgLLjw9SJMjhYdwQ2xt1fE1HqygC6rdSgCVhSBOJwLUxKYWk FHhS64yQUs2J/lYxcAkA4piSobNWhhUSFXPZSw5xrVPvUm6ldOu84UqunEJ6HeRgEe T5qU1fEVgxDQnznC63maFRyfo/zGqDGUs9Z5H9Vs7VOkcXII5FyUbJxhjd/9jiFq7+ 2KMoNj8oc0mEcMUsfI5RKl+63R/G60laJ9IGCi7xzyMu5oO3r/rFWCb/S0cTynY8w/ tK3CwNE2xGV2UKTPimM914z4Oo5aXEEvKOjQNkbIlmyLSK/Y9KQXmkGc21nKQfURGP f58BNdsDn893A== Received: by ida.kurilemu.internal (Postfix, from userid 1000) id C5903B002D6; Sun, 13 Sep 2026 15:12:33 +0200 (CEST) Date: Sun, 13 Sep 2026 15:12:33 +0200 From: Alvaro Herrera To: Nikolay Samokhvalov Cc: pgsql-hackers mailing list , Antonin Houska , mihailnikalayeu@gmail.com Subject: Re: [PATCH] Avoid a REPACK worker startup hang Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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%40mail.gmail.com 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/