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 1wEp5a-004RsW-0r for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Apr 2026 13:55:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wEp5Z-0035qg-1f for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Apr 2026 13:55:01 +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 1wEp5Y-0035qV-2t for pgsql-hackers@lists.postgresql.org; Mon, 20 Apr 2026 13:55:01 +0000 Received: from fout-a2-smtp.messagingengine.com ([103.168.172.145]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wEp5W-00000001voY-2JPh for pgsql-hackers@lists.postgresql.org; Mon, 20 Apr 2026 13:55:00 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id D4D90EC0457; Mon, 20 Apr 2026 09:54:57 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Mon, 20 Apr 2026 09:54:57 -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=1776693297; x=1776779697; bh=/ Rg+gGqZ47ITpNOioY2l+qtSHKVGNoOi66qW8l33oQg=; b=ERCOEsQbGEkp53XNU RZhL5h7+rAcg53gwHXG4xG/v1DNxPvyWYIRdwLCVvsv4RYDng6QFRQhbj7ll/c5P VKv5GL2GGMuQ7sav3+XqDwro3JeweG3zkXvYdHnoFpHv1QWdWJaShJrVXeXhG5Ps ShlCOIHNvuexdWeYDHK/UKhmsLhnc/QFKK9XGjRuHH0euuNF+fIMho5+BmISMmgR V3IFq9ix40ck2wimy7HHe3FJvDQOXJvF+/X3THF5LTyJoH6unZOP9jkrK2bmq1da Qu7B+HlaK+p4vV/fDgqgET9mclzXDb5M2KIejslB77u9Dapx89GYkzvY7u+MdIGy O7Zdw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdehkeeilecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghrohcu jfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqeenuc ggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeejkeffgfdu fffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghr rhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspghrtghpthhtohepledpmhhouggvpe hsmhhtphhouhhtpdhrtghpthhtoheprghnughrvghssegrnhgrrhgriigvlhdruggvpdhr tghpthhtoheprghhsegthigsvghrthgvtgdrrghtpdhrtghpthhtoheprghmihhtrdhkrg hpihhlrgduieesghhmrghilhdrtghomhdprhgtphhtthhopegsohgvkhgvfihurhhmodhp ohhsthhgrhgvshesghhmrghilhdrtghomhdprhgtphhtthhopehmihhhrghilhhnihhkrg hlrgihvghusehgmhgrihhlrdgtohhmpdhrtghpthhtohepshhrihhnrghthhdvudeffees ghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsth hsrdhpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehprhihiigshiesthgvlhhs rghsohhfthdrtghomhdprhgtphhtthhopehrohgsseigiihilhhlrgdrnhgvth X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Apr 2026 09:54:57 -0400 (EDT) Received: by ida.kurilemu.internal (Postfix, from userid 1000) id 74DDCB03192; Mon, 20 Apr 2026 15:54:52 +0200 (CEST) Date: Mon, 20 Apr 2026 15:54:52 +0200 From: Alvaro Herrera To: Antonin Houska Cc: Justin Pryzby , Mihail Nikalayeu , Andres Freund , Amit Kapila , Srinath Reddy Sadipiralla , Matthias van de Meent , pgsql-hackers@lists.postgresql.org, Robert Treat Subject: Re: Adding REPACK [concurrently] Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <62070.1776692773@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-Apr-20, Antonin Houska wrote: > Alvaro Herrera wrote: > > BTW I ran into a small problem after adding some tests in cluster.sql > > that would exercise this -- that test would die more or less randomly > > but frequently in CI (which it never did in my laptop) because of the > > size of the snapshot, > > > > ALTER TABLE ptnowner1 REPLICA IDENTITY USING INDEX ptnowner1_i_key; > > REPACK (CONCURRENTLY) ptnowner1; > > +ERROR: initial slot snapshot too large > > +CONTEXT: REPACK decoding worker > > RESET SESSION AUTHORIZATION; > > > > I think the solution for this is to move cluster to a separate parallel > > test. The one where it is now is a bit too crowded. Maybe the one for > > compression is okay? I'll test and push if I see it passing CI. > > That shouldn't break anything, but I have no idea why this problem was not > triggered (as far as I remember) by the stress tests we ran during > development. I took a guess that it's because some tests use minimally configured servers -- that is, max_connections=20 or so -- and then run 20 processes. If we then try to construct a snapshot that's limited to having only that many XIDs, we might not have enough room in the xip array. I didn't try to trace it super carefully though. > > >From b3d4158356f4914d2b0cba86eef6994c0ee50ab9 Mon Sep 17 00:00:00 2001 > > From: =?UTF-8?q?=C3=81lvaro=20Herrera?= > > Date: Mon, 20 Apr 2026 11:38:48 +0200 > > Subject: [PATCH 1/2] REPACK: do not require the user to have REPLICATION > > > Because there are now successful concurrent repack runs in the > > regression tests, we're forced to run test_plan_advice under > > wal_level=replica. > > Is this an attempt to disable REPACK (CONCURRENTLY)? That would require > wal_level=minimal (due to commit 67c20979ce). In which way does REPACK seem to > break test_plan_advice? No, quite the contrary. That test normally runs with wal_level=minimal, which causes REPACK to complain that it cannot start logical decoding. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/