Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e7f266e

Browse files
committed
There is a misstatement in the CLOSE reference page, now that we
have cursors that might outlive their creating transactions. A patch is attached that fixes this (suggestions on better wording are welcome). Neil Conway
1 parent b433f40 commit e7f266e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

doc/src/sgml/ref/close.sgml

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/close.sgml,v 1.14 2003/04/15 13:25:08 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/close.sgml,v 1.15 2003/08/17 04:46:00 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -31,9 +31,13 @@ CLOSE <replaceable class="PARAMETER">cursor</replaceable>
3131
</para>
3232

3333
<para>
34-
Every open cursor is implicitly closed when a transaction is
35-
terminated by <command>COMMIT</command> or
36-
<command>ROLLBACK</command>.
34+
Every non-holdable open cursor is implicitly closed when a
35+
transaction is terminated by <command>COMMIT</command> or
36+
<command>ROLLBACK</command>. Holdable cursors are implicitely
37+
closed if the transaction that created them aborts via
38+
<command>ROLLBACK</command>; if this does not happen, the holdable
39+
cursor remains open until an explicit <command>CLOSE</command> is
40+
executed, or the client disconnects.
3741
</para>
3842
</refsect1>
3943

0 commit comments

Comments
 (0)