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 1w91Th-0017i8-0Z for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Apr 2026 13:55:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w91Tf-00GaLG-23 for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Apr 2026 13:55:56 +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 1w91Te-00GaKk-37 for pgsql-hackers@lists.postgresql.org; Sat, 04 Apr 2026 13:55:55 +0000 Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w91Td-00000000Wo3-1t79 for pgsql-hackers@lists.postgresql.org; Sat, 04 Apr 2026 13:55:54 +0000 Received: from phl-compute-09.internal (phl-compute-09.internal [10.202.2.49]) by mailfout.stl.internal (Postfix) with ESMTP id C29421D000D9; Sat, 4 Apr 2026 09:55:51 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-09.internal (MEProxy); Sat, 04 Apr 2026 09:55:52 -0400 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=fm2; t=1775310951; x=1775397351; bh=O WfFrq4Q6jlWpEB+qTC7d+VmyI3fDRjX+zZ6z1cmZy0=; b=YuTI3zGJmaeWf8CIG neZ1QR3bWDn8lMVmkWa6g2TbD2HjMLkLpCSOtP84LWryU3hek7z26e23rCvT07V8 T/rhIVTAtUdHNfcgQ7UKYlVu7JP6Xx5wkPIRwG0ogcSbnU2IippQ+c+xssXWZfFu L2FRfi2+D09bXRy8T475IV0Juq6bB2kybJgSkVUadNCIw3B7tvYeiD9dkcJcH5Du BrnAYmkU9nRDcXKO4l0IfYxyegfDAayQoDDwjClC/4NSkONeGncDdPyYTmDh/MVg wTrJteNXWLrkEYJMHWOepxHBJj0RlVjQOTZGKl9vlm37uWS/41J0tqQO1NKwAtQN BYKgA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdduvddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghrohcu jfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqeenuc ggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeejkeffgfdu fffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghr rhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspghrtghpthhtohepjedpmhhouggvpe hsmhhtphhouhhtpdhrtghpthhtoheprghhsegthigsvghrthgvtgdrrghtpdhrtghpthht oheprghmihhtrdhkrghpihhlrgduieesghhmrghilhdrtghomhdprhgtphhtthhopegsoh gvkhgvfihurhhmodhpohhsthhgrhgvshesghhmrghilhdrtghomhdprhgtphhtthhopehm ihhhrghilhhnihhkrghlrgihvghusehgmhgrihhlrdgtohhmpdhrtghpthhtohepshhrih hnrghthhdvudeffeesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggt khgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehroh gsseigiihilhhlrgdrnhgvth X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 4 Apr 2026 09:55:50 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1775310948; bh=XXLt42v8M0VaplsnGm9oNJpRi+aBrw4kupIWIG9RkNE=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Dp4ERBx4Vv1BUYPDNbDy+pQwf1vHtaZmWNyEPzzAQ9X/mZdvtm3LONDpnoEZNG98j DbMt4ifXQ8ZjGK4ui0mYT0YK/mIkWRYwPqJ5913yBr3lyS/lb3PTLDk9+A4saOJQXt dSWDIk3frORRX1ixy/vBO7KO1aCB4UpXXKwmT+W1l/A8YBgD+bjR7HK2e0JeSnCZVb cLODXAo+nXZ7jiMdpEt3HE82Bl7QZqV17dP7qBvuWk8+nwY1weYHN/jBPbCbd/hoXu RBJi4olSZeVkxD61zSsNcA79p2MgyH4Daa9n5YdyhPSm2zeqn/v/9K9OdtH4EmZJ3I FZtb4jhlnD0aA== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id A748F7C; Sat, 04 Apr 2026 15:55:48 +0200 (CEST) Date: Sat, 4 Apr 2026 15:55:48 +0200 From: Alvaro Herrera To: Srinath Reddy Sadipiralla Cc: Antonin Houska , Amit Kapila , Mihail Nikalayeu , Matthias van de Meent , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] Message-ID: <202604041351.dxbbzgqqwdgk@alvherre.pgsql> 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-Apr-04, Srinath Reddy Sadipiralla wrote: > yes indeed , TotalMaxReplicationSlots was the culprit , as the window > after getting repack worked was forked , i think this was set back to 0. > Thanks for fixing this with "repack" flag , initially i thought why can't we > go with a macro > #define TotalMaxReplicationSlots (max_replication_slots + > max_repack_replication_slots) > but i thought maybe in future we might need this "repack" flag to add > more slot requirements. Yeah, the other option would have been to add the variable to restore_backend_variables() so that it's restored after the fork+exec, but that didn't seem better. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "Niemand ist mehr Sklave, als der sich für frei hält, ohne es zu sein." Nadie está tan esclavizado como el que se cree libre no siéndolo (Johann Wolfgang von Goethe)