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 1vIUNG-0034Qt-0m for pgsql-bugs@arkaria.postgresql.org; Mon, 10 Nov 2025 16:04:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vIUNE-001JX4-03 for pgsql-bugs@arkaria.postgresql.org; Mon, 10 Nov 2025 16:04:08 +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 1vIUND-001JWw-2S for pgsql-bugs@lists.postgresql.org; Mon, 10 Nov 2025 16:04:07 +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 1vIUNC-006Ork-0k for pgsql-bugs@lists.postgresql.org; Mon, 10 Nov 2025 16:04:06 +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 5AAG40ux1879928; Mon, 10 Nov 2025 11:04:00 -0500 From: Tom Lane To: zengman@halodbtech.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19107: The hold cursor is unexpectedly released during rollback In-reply-to: <19107-656a10a7a066f7e9@postgresql.org> References: <19107-656a10a7a066f7e9@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Mon, 10 Nov 2025 10:46:44 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1879926.1762790640.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Mon, 10 Nov 2025 11:04:00 -0500 Message-ID: <1879927.1762790640@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > While I was writing test cases for the hold cursor, I unexpectedly > discovered that commit and rollback handle it inconsistently—rollback > unexpectedly releases the hold cursor. Should this be regarded as a bug? No, that's intentional. The rollback might be cleaning up a failure in the held cursor. regards, tom lane