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 1w9UII-001Tam-0s for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Apr 2026 20:42:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w9UIE-004xV2-1j for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Apr 2026 20:42:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w9UID-004xUu-1l for pgsql-hackers@lists.postgresql.org; Sun, 05 Apr 2026 20:42:02 +0000 Received: from fout-b7-smtp.messagingengine.com ([202.12.124.150]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w9UI9-00000000mlo-3lWV for pgsql-hackers@lists.postgresql.org; Sun, 05 Apr 2026 20:42:01 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.stl.internal (Postfix) with ESMTP id 23A141D0006C; Sun, 5 Apr 2026 16:41:55 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Sun, 05 Apr 2026 16:41:55 -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=1775421714; x=1775508114; bh=+ Bi75WO+BhtYf8SAp1Fn1eiZAWRyTEyWqO8MbTcAPr0=; b=JhMAAES/CyUu8Wztl QZA5pq8M6OEA1h7FVd3fxRaN2/EygZH0b0Gt9fHac9fMTZUrpqbo1Gg8PCSIMDh5 m0X1RZhQ1HYVD4ZEW3g1J/EhIB9Ap2RZsaP+jqRfoSbx8d8CUczzgOp/pqyNePik cKjRmrEX3gJR+Z6uRqFEilrzbif9wwRUJmp6nGPl6dtOzWPyh+YdQf/5dzpTRfrC Dy+OrMFH1ug8x4gTf9UT3n2JxgJNXlBDWmmFhEQVdbSdvME/KDEIBudkHUXBiAWX /MDJNUj6EcSVQzWA5FMS4N4nVznObVARUd5QLkAyIT2LGa+JO4qQQX3Unk7r09Vd Nt8ew== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdduheejjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfggtggugfgjsehmkeerredttdejnecuhfhrohhmpeetlhhvrghrohcu jfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqeenuc ggtffrrghtthgvrhhnpeduleekkefgtddttedtkefguddvieffleetgeejiefhteehkeev feettdduvdfhueenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghr rhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspghrtghpthhtohepjedpmhhouggvpe hsmhhtphhouhhtpdhrtghpthhtoheprghhsegthigsvghrthgvtgdrrghtpdhrtghpthht oheprghmihhtrdhkrghpihhlrgduieesghhmrghilhdrtghomhdprhgtphhtthhopegsoh gvkhgvfihurhhmodhpohhsthhgrhgvshesghhmrghilhdrtghomhdprhgtphhtthhopehm ihhhrghilhhnihhkrghlrgihvghusehgmhgrihhlrdgtohhmpdhrtghpthhtohepshhrih hnrghthhdvudeffeesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggt khgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehroh gsseigiihilhhlrgdrnhgvth X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 5 Apr 2026 16:41:53 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1775421710; bh=i+kQIrxoYhqTFIwVNCDRjDfReUqgUtjoyalieBTAPBk=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=HA/NUJMSthd6scnFrPtHRMr/7yE5CNDNk7tEmqdX4SFJevL2tRth02ypBukhkIyF1 hodhx1JsR3R0R1415B+rNZWPoSZ0NmNfoKBrds9RnrfUdRR2e0mR6fy/AWvYdPTISB 2xu140ZOssjyM4SQB/udKqiNQGd/m9tozzBZGjV3t+GAUQSd/s3R3XCi9XJZYBF/Vc byKaNFLgnD6G/5qokQLRtiBCV9CFwjX8dKS3XBf4B1qKSTx74DJ36XSAI8M6/NrAXR KaOC75/94+YlI/r33ELFmzF/ic2V6lyBPqsXKE4zbTI2JWjgRMxDW+9FH5TXZ3RIlx cvaUfHaF9AMAA== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id C6C9B7C; Sun, 05 Apr 2026 22:41:50 +0200 (CEST) Date: Sun, 5 Apr 2026 22:41:50 +0200 From: Alvaro Herrera To: Antonin Houska Cc: Srinath Reddy Sadipiralla , Amit Kapila , Mihail Nikalayeu , Matthias van de Meent , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] Message-ID: <202604052035.il2hp2wze6pz@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="k3knmf76cw7vbhar" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <202604051852.qfdnfvemfkd2@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --k3knmf76cw7vbhar Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Hi, So here's a v55 version of the base REPACK patches that I'm feeling comfortable calling very close to committable. I'm going to give an additional read tomorrow and maybe make cosmetic adjustments, but there should be nothing substantial. Of course, the subsequent additions in the other patches of v54 are still in the cards, and they are most likely essential. Changes compared to v54: - changed reform_tuple() to not deform the tuple if no attributes are going to be touched. We can simply make a copy instead, which I suspect is considerably cheaper (but I didn't measure). - cleaned up worker shmem shutdown callback. I think it's how it is because it copied parallel worker code, but that has a weird structure for --as far as I can see-- no good reason (we oughta change it too) - renamed the worker from pgoutput_repack to pgrepack. (Note that this is an internal name that users don't face.) - reverted some unnecessary changes to master Thanks -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ --k3knmf76cw7vbhar Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename="v55-0001-Rename-cluster.c-h-repack.c-h.patch"