Sophie

Sophie

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

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_sendquery</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="Asynchronous Query Processing Commands"
HREF="pgtcl-ref-async.html"><LINK
REL="NEXT"
TITLE="pg_isbusy"
HREF="pg-isbusy.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="pgtcl-ref-async.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="pg-isbusy.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="PG-SENDQUERY"
></A
>pg_sendquery</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1815"
></A
><H2
>Name</H2
>pg_sendquery&nbsp;--&nbsp;Send query asynchronously</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1818"
></A
><H2
>Synopsis</H2
><PRE
CLASS="SYNOPSIS"
>pg_sendquery <VAR
CLASS="PARAMETER"
>conn</VAR
> <VAR
CLASS="PARAMETER"
>commandString</VAR
></PRE
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1822"
></A
><H2
>Description</H2
><P
><CODE
CLASS="FUNCTION"
>pg_sendquery</CODE
> sends a command to the database and
returns immediately, without waiting for the command to complete and
without providing a result handle.
    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1826"
></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 execute the command.
          </P
></DD
><DT
><VAR
CLASS="REPLACEABLE"
>commandString</VAR
></DT
><DD
><P
>            The SQL command to execute.
          </P
></DD
></DL
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1839"
></A
><H2
>Return Value</H2
><P
>      None.
    </P
><P
>      A Tcl error will be thrown if an error occurs.
    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1843"
></A
><H2
>Notes</H2
><P
>Use <A
HREF="pg-isbusy.html"
>pg_isbusy</A
> to see if the command is still
being executed, and use <A
HREF="pg-getresult.html"
>pg_getresult</A
> to get the result
when the command has completed.
    </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="pgtcl-ref-async.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-isbusy.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Asynchronous Query Processing Commands</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_isbusy</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>