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 1x54CS-007bCY-0w for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Sep 2026 16:34:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x54CR-00GORv-03 for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Sep 2026 16:34:03 +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 1x54CP-00GORK-39 for pgsql-hackers@lists.postgresql.org; Fri, 11 Sep 2026 16:34:02 +0000 Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x54CM-00000004BOy-2HCi for pgsql-hackers@lists.postgresql.org; Fri, 11 Sep 2026 16:34:01 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id 4DB4E7A00C4; Fri, 11 Sep 2026 12:33:56 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Fri, 11 Sep 2026 12:33:56 -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=1789144436; x= 1789230836; bh=x0fR72Dn/ysfpVFUO9F/tFRrOp7Cm8RzLPjGcbEQ7os=; b=J ZIJRSkxdt22XXb1qao+56UB4EAW7B9EWNgu6+NIRC8ImR7he1UZ7KospuzVkuCLC wvFqMAjpvYDYRCoNGvQlo6pFRVTLAUsAKWxYcJZsbzofkyx0oKAdWS9DFMkBn2rt 2VvjvvXeRC+pLhJlRLxnnpl3VEIjSb9bduLJYawXKPaw8vhAODDfXEtBjJUuDsnG d2I0oj7wla8hv0cD4NPJeYJwdWPhvZCuJ1zGG0gpmqIisPQma0kCyFQBGFg+ai77 SVDIhegB9yLJRZp4nUXLICVSTN+WNdiiQs4tNKXAk3sVkocYO3xdavyWjwEaK/d+ Y4BZeMKNp8U7NE0iCR7yA== 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=1789144436; x=1789230836; bh=x 0fR72Dn/ysfpVFUO9F/tFRrOp7Cm8RzLPjGcbEQ7os=; b=pPqC/l4db4zuWXcPs 13IvtvtVTvrsbYciICd88mDyLbw/f1uQcQ6N5CqhZDYDVjminsqBKRXGyPVYMYzM OGvQx1mBqPtf1ubWb5ZP5zf8gNK3yV3APC2JTpvxyw+UULr1jbOv5yQVxLQsaT1F 3X4i9hCsIDP+D9lqjvcWxN0EmDcswThVV5kS+MdZYfoGNGZquPn2a+WWtA8OT8zB gxfaZHD8LsIQjAXRMOj++8yFx4oilPDmdbmd28Wo+saOSaNwkNHDqph/Zjr6zvXJ kIHo1+mqpPjQA8naGLgZ6VEira8FSfbMw8mQlM9tZ0qAXND9zfM4fPFFGoLvqknl hk4wg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTFDZatGsTsjrUC+fRugTxejqzMgMMgycBN3Bku8sFlG/R8Q78UJBgBuhdoCeojJVc GayhQpJdrlTDnWd631zl/L1UQ09bMhCYNa0OMVXfWxVR58UIYH2pVALds905lnD0dArOdZ XxTucIP4pY7yxPLvKZPje6XtvyGfWlKLprnbotk8Ad4qhteA7Vkc4iNy5Izhhv4pOvs931 VwlQIlYnzNkLfDQWCT4Bf8AqM7KPLr7Of9UKBIWR6mc46TXb2GrrbDguKPLP6m7u4M/0Yb L7UtR9sklVFhHq2qk7YR2DD30Xi1PpgQHy2RgsqUlxSyyhcOPRL8mGubHp0uf19u2Jb7jG QEYwD4qM+KuvJjkEtPfA95CNPBKmDrM4XUet5RFb8MevIIzYTudgpDVRSZ0ZRl6wVRoLx5 6za0Gx8x0XyRIabswXB5nvXfTeRR4W2oE5xYhnpKxDAvshHzmRWJWA6UCTQFp8jg7lBdzC 0kjKv8hHpQzG1f7kkcMiNKR9kZyxk76SzhL1JnlMJvXFmoUqPnyqfVr5OhGmpR1/jFKbqH Z1P3N1+kqSWSguFQnAQq+PQwjqTSDcDMG6/FkzECXFmz6lmN8Mqv9fWFZ5fhEx5vgcwy+e roH21yZn9msgOIR9h5DOuky2J6B8TEBCV+zJ8O+s6+CuRNSrx+RWpJEQnweQ X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 11 Sep 2026 12:33:55 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1789144432; bh=L/7o9eNzd/yDQ3UQ2QiyKq4ox0SVEhFkTJDZiIdcP5M=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=25RzLIZqUul92+3zfYgvge9mlUZuhW5GHQ1fozDhnW45uSOIDk3d/1bbSjT9sdPBv hMgpwlTX5wpsuzmTfBGpbgPk4tr9uEAc481WMvtRQUG/AiU9pLbND1XSNaGCPuYrh5 CnqADQRelQdNVLFQFcz9BydBp6CoeoR8b1aB3kEiwwgI4NL1XgDaAESA6/Rk+ESADd rAS7ls7W3/Y5mgChI4q8aLyqnfXrW9v25+xtBwFh3xjgiZxdVNK8pdJsnyI7nJCsv1 S6baHvOtoR7qB33DSCdSxsxceBO91Vn7HMBtTTd1rzrWmm/VQHyZ9Wk8c1Me91myOq rvqBhHDOomTJw== Received: by ida.kurilemu.internal (Postfix, from userid 1000) id F1902B00039; Fri, 11 Sep 2026 18:33:52 +0200 (CEST) Date: Fri, 11 Sep 2026 18:33:52 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Chao Li Cc: shihao zhong , pgsql-hackers Subject: Re: REPACK (CONCURRENTLY) decoding worker is canceled by lock_timeout Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <902950F0-E94A-4DFF-93EE-8B10469F51A1@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-Sep-10, Chao Li wrote: > > On Sep 10, 2026, at 11:21, shihao zhong wrote: > > Done in v2, through the DSM segment the worker already attaches to. I think this is pretty reasonable. > Auto-vacuum explicitly overrides all four settable session timeouts > (statement_timeout, transaction_timeout, lock_timeout, and > idle_in_transaction_session_timeout) to zero, while this worker only > handles the latter two. I understand that statement_timeout and > idle_in_transaction_session_timeout are probably never armed by this > worker, so functionally they may not need special handling. Hmm, but REPACK is not autovacuum; it's quite different in fact, in that REPACK is intended to always be invoked manually, while autovacuum runs on its own. On the other hand, because REPACK refuses to run in a transaction block, transaction_timeout and idle_in_transaction_session_timeout don't really apply, so I'm not seeing the potential for problems. > My concern is that the inconsistency might lead to confusion to future > readers. Does it make sense to either remove those two from > auto-vacuum worker or set them to repack worker as well? I decidedly don't want to touch autovacuum. Although I'm not sure I see the reason why the transaction-based timeouts are relevant for autovacuum. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/