have cursors that might outlive their creating transactions. A
patch is attached that fixes this (suggestions on better wording
are welcome).
Neil Conway
- Every open cursor is implicitly closed when a transaction is
- terminated by COMMIT or
- ROLLBACK.
+ Every non-holdable open cursor is implicitly closed when a
+ transaction is terminated by COMMIT or
+ ROLLBACK. Holdable cursors are implicitely
+ closed if the transaction that created them aborts via
+ ROLLBACK; if this does not happen, the holdable
+ cursor remains open until an explicit CLOSE is
+ executed, or the client disconnects.