CLASS="PRODUCTNAME"
>PostgreSQL</SPAN
> reports an error if such a
    command is used outside a transaction block.
    Use
    <A
HREF="sql-begin.html"
>BEGIN</A
> and
    <A
HREF="sql-commit.html"
>COMMIT</A
>
    (or <A
HREF="sql-rollback.html"
>ROLLBACK</A
>)
    to define a transaction block.
   </P
><P
>    If <TT
CLASS="LITERAL"
>WITH HOLD</TT
> is specified and the transaction
    that created the cursor successfully commits, the cursor can
    continue to be accessed by subsequent transactions in t