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 1x5Dw0-007hal-15 for pgsql-hackers@arkaria.postgresql.org; Sat, 12 Sep 2026 02:57:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x5Dvy-002wRH-0i for pgsql-hackers@arkaria.postgresql.org; Sat, 12 Sep 2026 02:57:42 +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 1x5Dvx-002wR1-2w for pgsql-hackers@lists.postgresql.org; Sat, 12 Sep 2026 02:57:41 +0000 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1x5Dvv-00000005Enq-1W7x for pgsql-hackers@lists.postgresql.org; Sat, 12 Sep 2026 02:57:41 +0000 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-86959a6f7f6so1288266b3a.2 for ; Fri, 11 Sep 2026 19:57:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789181858; x=1789786658; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:content-type:from:to:cc :subject:date:message-id:reply-to:content-type; bh=1PRwAQ0EW8wVCkkkhlrtvenL/ylHYs7IQ2YuIdQHP68=; b=m2d6csXJRJCmInZH86X9ujsDCGJRa8HHtmmITb48/D4o6UoN2eOvjREtRcJY4V7RHW GK6yOjFKKun8whPFIFgYXXsk4Hbjc8FPF0Ymvn9jvMb5PicujzxaHTLZlOcvfFCXx/uk fk4GuFaz+iYeC+Vn2ZnjKraTtsgBV0hBDcgLbPs2N1f5GuVhuNGtX2Mu8dUCwuBQYFUt DDQ48hcEJr24L9JeWWDtZS4YhZYBYy9SzNoPbIahaFNaUgWUxmyiV2eBRPunAyWQ9iXh mMw1jSNbkKxl2tPmFzhK+pysSqo6mjgjZUhLRsm48L7wh24hMXH3emi6ZZtCd6JszJAP 1NQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789181858; x=1789786658; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:content-type:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=1PRwAQ0EW8wVCkkkhlrtvenL/ylHYs7IQ2YuIdQHP68=; b=WW6+oquY+dnTBFc9TM+7WSl4nMGtaWsUqCAwGHszvYFisjCeIIGDvitXSC8O6SswIN d+R7zy7GcIaXXSjO7pXMq1E5z/SivwvtpXYK5TWZZuQw4gCOK/fdlMyrXDyhYFV2uBjE 6HLEy6zm62og60Jz7yDLtWur0Q54SsliSzFQhKLNpE6eeIGDT8jGD0i/MpSf9wqRStmg xG9zJZ2Uessditx1A/UtQZz0O+nuyV21BDgfSTB4yy1a6HQBixZ0f1eI58c+L160/Uo0 aRPE16+LFYVOHcbZLdxSYoAqG013Xe80q5qmNCAZnM7F1xcSddaRUdNL5yoDuYHHZEip PHPA== X-Forwarded-Encrypted: i=1; AKwUvBxZKop6Uq+Oo8YwhKlTew1qcDxHcE2lItCr/1M1tJwRLhU9lM/zbL/yJbSzwRRndV6T9GYvuJ/FWzS8NVnG@lists.postgresql.org X-Gm-Message-State: AFuF++mZ2qQFCgXWl8zU+ZptGHOwwXfWS+5C1Z2M1HjV4wYk26Dljnuu +2T2Pid5Q/h7Li95BUKFigHRzSNzA9LP/hOjALHEwP/iAdTEnJgA9X++ X-Gm-Gg: AYBFou2Mrq+YD2RGMHm1/PFP0lw/Dhv0UugoTQdqEg6MHNe8Y1Egy8qg6WQEb7G/5h2 ETdA5EcJQLdClxjjfKbfXyuB0DvIr+ZTkfQkGQ5+kC1yXopcAj4chVtQDlFCFyuyGquE0b12WDv 9QY3FqMOmjdmlDUvUxAaTGhiuHcrcIFH5ymHhdmOa66rhD6UCLe1UmjmAYznKHIcdqw5KHU1zz4 TU3fh1lRoeYzRnRRRolVip6HQqNMy4rwAPC5glj6SNqrOSbMUbegcRQMvNso8yqiyYg9+eImeNd /2C/lXylR5YFLCnU2DJAMSo+ka0oXdGusikyEQS9huU+fPBRac9CbGLDHVnP5iRAhq7ioKRBJyQ w7nfwNfVOvBeSsD5wD0yneKJtYd/DLIyRSu9cibiKAwGaTittlQ3oauugyej8N4VdLj16MZ9uFE /uqGMNyZ5o4NmLPa6XjKzMKVOAEVznDSBBUJbWSPIW6C3fpIgB3BZaMd0wyHdON2BlPNLNkkgkG NocAfA28A== X-Received: by 2002:a05:6a20:be8f:b0:3d3:af85:eb98 with SMTP id adf61e73a8af0-3daed424d01mr14876392637.26.1789181857777; Fri, 11 Sep 2026 19:57:37 -0700 (PDT) Received: from smtpclient.apple ([185.135.79.125]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-cc4c65b1a63sm1940427a12.31.2026.09.11.19.57.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Sep 2026 19:57:37 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.700.51.1.1\)) Subject: Re: REPACK (CONCURRENTLY) decoding worker is canceled by lock_timeout From: Chao Li In-Reply-To: Date: Sat, 12 Sep 2026 10:57:01 +0800 Cc: shihao zhong , pgsql-hackers Content-Transfer-Encoding: quoted-printable Message-Id: References: To: =?utf-8?Q?=C3=81lvaro_Herrera?= X-Mailer: Apple Mail (2.3864.700.51.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Sep 12, 2026, at 00:33, =C3=81lvaro Herrera = wrote: >=20 > On 2026-Sep-10, Chao Li wrote: >=20 >>> On Sep 10, 2026, at 11:21, shihao zhong = wrote: >=20 >>> Done in v2, through the DSM segment the worker already attaches to. >=20 > I think this is pretty reasonable. >=20 >> 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. >=20 > 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. >=20 Yeah, I fully understood the difference. My concern was only about the = inconsistency. >> 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? >=20 > 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. >=20 That was actually my concern. The fact that this raised the question of = why autovacuum resets those timeouts suggests that the inconsistency can = be confusing to readers. I agree we don't need to touch autovacuum in this patch. Does it make = sense to remove those unnecessary timeout resets from autovacuum by a = separate patch? Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/