1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
10 HREF="mailto:pgsql-docs@postgresql.org"><LINK
12 TITLE="PostgreSQL 7.4.1 Documentation"
13 HREF="index.html"><LINK
16 HREF="sql-commands.html"><LINK
19 HREF="sql-checkpoint.html"><LINK
22 HREF="sql-cluster.html"><LINK
25 HREF="stylesheet.css"><META
27 CONTENT="2003-12-22T03:48:47"></HEAD
33 SUMMARY="Header navigation table"
43 >PostgreSQL 7.4.1 Documentation</TH
51 HREF="sql-checkpoint.html"
60 HREF="sql-checkpoint.html"
73 HREF="sql-cluster.html"
81 HREF="sql-cluster.html"
102 >CLOSE -- close a cursor</DIV
107 CLASS="REFSYNOPSISDIV"
131 > frees the resources associated with an open cursor.
132 After the cursor is closed, no subsequent operations
133 are allowed on it. A cursor should be closed when it is
137 > Every non-holdable open cursor is implicitly closed when a
138 transaction is terminated by <TT
145 >. A holdable cursor is implicitly
146 closed if the transaction that created it aborts via
150 >. If the creating transaction successfully
151 commits, the holdable
152 cursor remains open until an explicit <TT
156 executed, or the client disconnects.
178 > The name of an open cursor to close.
195 > does not have an explicit
199 > cursor statement; a cursor is considered
200 open when it is declared. Use the <TT
204 statement to declare a cursor.
215 > Close the cursor <TT
220 CLASS="PROGRAMLISTING"
236 > is fully conforming with the SQL standard.
244 SUMMARY="Footer navigation table"
255 HREF="sql-checkpoint.html"
273 HREF="sql-cluster.html"
289 HREF="sql-commands.html"