Seth Woolley's Man Viewer

Manual for close - man 7 close

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

CLOSE(7)                         SQL Commands                         CLOSE(7)



NAME
       CLOSE - close(2,7,n) a cursor


SYNOPSIS
       CLOSE name


DESCRIPTION
       CLOSE  frees  the  resources associated with an open(2,3,n) cursor.  After the
       cursor is closed, no subsequent operations are allowed on it. A  cursor
       should be closed when it is no longer needed.

       Every  non-holdable open(2,3,n) cursor is implicitly closed when a transaction
       is terminated by COMMIT or ROLLBACK. A holdable  cursor  is  implicitly
       closed  if(3,n)  the transaction that created it aborts via ROLLBACK. If the
       creating transaction successfully commits, the holdable cursor  remains
       open(2,3,n) until an explicit CLOSE is executed, or the client disconnects.

PARAMETERS
       name   The name of an open(2,3,n) cursor to close.

NOTES
       PostgreSQL does not have an explicit OPEN cursor statement; a cursor is
       considered open(2,3,n) when it is  declared.  Use  the  DECLARE  statement  to
       declare a cursor.

EXAMPLES
       Close the cursor liahona:

       CLOSE liahona;


COMPATIBILITY
       CLOSE is fully conforming with the SQL standard.



SQL - Language Statements         2003-11-02                          CLOSE(7)

References for this manual (incoming links)