Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > dc5bd15dd837bfdf58139cb74856b967 > files > 8

postgresql-tcl-8.1.23-10.el5_10.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>pg_cancelrequest</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Pgtcl Reference Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Asynchronous Query Processing Commands"
HREF="pgtcl-ref-async.html"><LINK
REL="PREVIOUS"
TITLE="pg_getresult"
HREF="pg-getresult.html"><LINK
REL="NEXT"
TITLE="pg_blocking"
HREF="pg-blocking.html"><LINK
REL="STYLESHEET"
TYPE="text/css"
HREF="stylesheet.css"><META
NAME="creation"
CONTENT="2004-11-09T00:53:06"></HEAD
><BODY
CLASS="REFENTRY"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Pgtcl Reference Manual: The PostgreSQL Tcl Interface</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="pg-getresult.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="pg-blocking.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="PG-CANCELREQUEST"
></A
>pg_cancelrequest</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1914"
></A
><H2
>Name</H2
>pg_cancelrequest&nbsp;--&nbsp;Cancel an in-progress asynchronous query</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1917"
></A
><H2
>Synopsis</H2
><PRE
CLASS="SYNOPSIS"
>pg_cancelrequest <VAR
CLASS="PARAMETER"
>conn</VAR
></PRE
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1920"
></A
><H2
>Description</H2
><P
><CODE
CLASS="FUNCTION"
>pg_cancelrequest</CODE
> asks the database server to
abandon processing of the current command issued by
<A
HREF="pg-sendquery.html"
>pg_sendquery</A
>.
    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1925"
></A
><H2
>Arguments</H2
><P
></P
><DIV
CLASS="VARIABLELIST"
><DL
><DT
><VAR
CLASS="REPLACEABLE"
>conn</VAR
></DT
><DD
><P
>            The handle of the connection on which to cancel the current command.
          </P
></DD
></DL
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1933"
></A
><H2
>Return Value</H2
><P
>      Nothing. Throws a Tcl error if an error occurs.
    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1936"
></A
><H2
>Notes</H2
><P
>There is no guarantee that the command will actually be canceled. For
example, the command may have been completed before the database server
can receive and handle the cancel request. If a request is canceled, and
you were in the middle of a transaction, the entire transaction is rolled
back.
    </P
><P
>You still need to call <A
HREF="pg-getresult.html"
>pg_getresult</A
> repeatedly until it
doesn't return anything, and deal with all the returned result handles,
usually by freeing them with <TT
CLASS="LITERAL"
>pg_result&nbsp;-clear</TT
>.
    </P
><DIV
CLASS="CAUTION"
><P
></P
><TABLE
CLASS="CAUTION"
BORDER="1"
WIDTH="100%"
><TR
><TD
ALIGN="CENTER"
><B
>Caution</B
></TD
></TR
><TR
><TD
ALIGN="LEFT"
><P
>This command is part of a new Tcl interface to asynchronous query
processing capabilities, and should be considered experimental.
The command may change and backwards compatibility is not assured.
      </P
></TD
></TR
></TABLE
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="pg-getresult.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="pg-blocking.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>pg_getresult</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="pgtcl-ref-async.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>pg_blocking</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>