Re: BUG #19107: The hold cursor is unexpectedly released during rollback - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #19107: The hold cursor is unexpectedly released during rollback
Date
Msg-id 1879927.1762790640@sss.pgh.pa.us
Whole thread Raw
In response to BUG #19107: The hold cursor is unexpectedly released during rollback  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #19107: The hold cursor is unexpectedly released during rollback
List pgsql-bugs
PG Bug reporting form <noreply@postgresql.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



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #19108: Stack overflow duting query parse
Next
From: Andrey Zhidenkov
Date:
Subject: Re: BUG #19108: Stack overflow duting query parse