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 1wAE7n-002BQv-2D for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 21:38:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wAE7m-002dpb-0b for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 21:38:18 +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 1wAE7l-002dpT-1p for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2026 21:38:18 +0000 Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.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 1wAE7i-000000016bF-3vN2 for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2026 21:38:17 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfhigh.phl.internal (Postfix) with ESMTP id 9D8EB14000AE; Tue, 7 Apr 2026 17:38:14 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Tue, 07 Apr 2026 17:38:14 -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=1775597894; x=1775684294; bh=I z03EQz0iz2G6GIkASNXVQpjRNYabuDA/wKPoGPOYZY=; b=enOiK4ZlCcxm//trG gvG+Gc+OjSVe+JXDmmLyNQgU86XG2eBQlBCk3lM9szs98t9oxqywyN8ELy5J3BMH qfDippCXbvVFBUKwTTKPGkcTWDWLnIPQKg7gzwqZ6G7FnIeKKLZfrQwBGYjA2CG/ cF3Z6HUcxr7oHFV4fnPYBAqqyTMNqjtYQOZ6/RZHzPDrcctbuuN84vD3n9VNonsj OkBaiT48wg5CMG47kujmEWxAKa6SPpxuDeXw8cQunTpp5AqM5hu22m9unvp0TblF swwntzj/TOIedorF+XX5gR4tJS2EI2yNOvX6oYKrtQLF6fpP561E8MUO5jjO3kOU jDu5w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgddvudejjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfggtggugfgjsehmkeerredttdejnecuhfhrohhmpeetlhhvrghrohcu jfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqeenuc ggtffrrghtthgvrhhnpeelfeehgfeiteffffdufeeuvdefgeffueejtdehveduheejgfeh heevudfggfefieenucffohhmrghinhepphhoshhtghhrrdgvshdpvghnthgvrhhprhhish gvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspghrtghpth htohepkedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghhsegthigsvghrthgv tgdrrghtpdhrtghpthhtohepkhhurhhouggrrdhhrgihrghtohesfhhujhhithhsuhdrtg homhdprhgtphhtthhopegrmhhithdrkhgrphhilhgrudeisehgmhgrihhlrdgtohhmpdhr tghpthhtohepsghovghkvgifuhhrmhdophhoshhtghhrvghssehgmhgrihhlrdgtohhmpd hrtghpthhtohepmhhihhgrihhlnhhikhgrlhgrhigvuhesghhmrghilhdrtghomhdprhgt phhtthhopehsrhhinhgrthhhvddufeefsehgmhgrihhlrdgtohhmpdhrtghpthhtohepph hgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhr tghpthhtoheprhhosgesgiiiihhllhgrrdhnvght X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 7 Apr 2026 17:38:13 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1775597891; bh=EgRWUccCg1xWt/5Mb0rKoLyY5zGuhx2s5NKAXeqmVpE=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=CQNPVpoIP/UZAYpMWA9yGZxU+AVbRluLcTKwzt8RzAJPhIt0C/+5tzUsKFDeTuw+2 wzibp/vrj97y2VfErLG63eFKyUO06fTJhK10fmu1pZICIZ4e93gbot1+5I5xa0o+ld sLnX2nge/c/wsBe201uYb7IqjcWlx9MJmkzwxGwVjT6dfSR1gETrIRNi8uRjk7aT8Y nYEvdRtdYWREEZUFrPkZXAgetxc5Tr6MDkCf6EsWyTSUz/0Ftny0fc3QYHMbR9SfPL ptI9Jhcb+CykVhDOLywj27HYTWJYbTEzkSmDHQkSuWzlqvJAbl/kZucFCBj1ky68lL XfmRW0jUc+vFA== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 506E97C; Tue, 07 Apr 2026 23:38:11 +0200 (CEST) Date: Tue, 7 Apr 2026 23:38:11 +0200 From: Alvaro Herrera To: Amit Kapila Cc: "Hayato Kuroda (Fujitsu)" , Antonin Houska , Srinath Reddy Sadipiralla , Mihail Nikalayeu , Matthias van de Meent , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] Message-ID: <202604072027.gazfa2zt2l2j@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="kdrcpfmkbkc4lqhu" 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 --kdrcpfmkbkc4lqhu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On 2026-Apr-06, Amit Kapila wrote: > On Sat, Apr 4, 2026 at 3:49 PM Alvaro Herrera wrote: > > I suppose it's unfortunate that autovacuum launcher is going to try > > again and again to get workers to process that table, and they are going > > to be killed over and over. Maybe it would be better to have autovac > > ignore those tables. > > I feel that would be better at least when we know that the repack > concurrently command is already in progress. It can help avoid > launching workers again and again, especially when repack concurrently > command is going to take a long time. Okay. I implemented that now, and here it is. 0001 is as before; 0002 creates shared memory for repack and has autovacuum recheck each table there before processing it. Having implemented it, I'm not sure the resulting behavior is all that different from before. I mean, the only difference is that the worker is going to see the table listed in repack shmem and skip it; as opposed to trying to lock it and be terminated by the deadlock detector one second later, at which point it continues with the next table on its list. So it's some wasted work to set up the autovac work, but nothing more. However, there's also the point Andres just made in [1] which basically kills this idea. So I'm withdrawing this proposal. Still, having written it, I thought it'd be better to get it archived. [1] https://postgr.es/m/4n4q3preb3lgyhpzstebhux7b2aojhsw7gik4ivaznyggiezrs@lrznutssxlh2 -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ “Cuando no hay humildad las personas se degradan” (A. Christie) --kdrcpfmkbkc4lqhu Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename="0001-Error-out-any-process-that-would-block-at-REPACK.patch"