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.94.2) (envelope-from ) id 1uzhbl-006IWi-IC for pgsql-novice@arkaria.postgresql.org; Fri, 19 Sep 2025 20:21:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uzhbj-009KCY-JR for pgsql-novice@arkaria.postgresql.org; Fri, 19 Sep 2025 20:21:27 +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.94.2) (envelope-from ) id 1uzhbj-009KCJ-6y for pgsql-novice@lists.postgresql.org; Fri, 19 Sep 2025 20:21:27 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uzhbg-001KQW-2f for pgsql-novice@postgresql.org; Fri, 19 Sep 2025 20:21:26 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 58JKL0YJ2164654; Fri, 19 Sep 2025 16:21:00 -0400 From: Tom Lane To: "Quentin de Metz" cc: pgsql-novice@postgresql.org, amborodin@acm.org, aekorotkov@gmail.com, japinli@hotmail.com, zhjwpku@gmail.com Subject: Re: SET transaction_timeout inside a transaction In-reply-to: <554670a7-7560-4d18-8ecb-8518fddf2b9d@app.fastmail.com> References: <554670a7-7560-4d18-8ecb-8518fddf2b9d@app.fastmail.com> Comments: In-reply-to "Quentin de Metz" message dated "Fri, 19 Sep 2025 22:12:59 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2164652.1758313260.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 19 Sep 2025 16:21:00 -0400 Message-ID: <2164653.1758313260@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Quentin de Metz" writes: > It appears that changing the transaction_timeout when inside a transacti= on does not work as expected. The effective value is whatever it was at transaction start, because that's when the transaction timeout time is determined. regards, tom lane