Re: BUG #19107: The hold cursor is unexpectedly released during rollback

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: zengman(at)halodbtech(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19107: The hold cursor is unexpectedly released during rollback
Date: 2025-11-10 16:04:00
Message-ID: 1879927.1762790640@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> 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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andrey Zhidenkov 2025-11-10 16:12:40 Re: BUG #19108: Stack overflow duting query parse
Previous Message Tom Lane 2025-11-10 16:02:48 Re: BUG #19108: Stack overflow duting query parse