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
15 TITLE="pgtcl Command Reference"
16 HREF="libpgtcl-ref.html"><LINK
18 TITLE="pg_conndefaults"
19 HREF="pgtcl-pgconndefaults.html"><LINK
22 HREF="pgtcl-pgresult.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="pgtcl-pgconndefaults.html"
60 HREF="pgtcl-pgconndefaults.html"
73 HREF="pgtcl-pgresult.html"
81 HREF="pgtcl-pgresult.html"
102 >pg_exec -- send a command to the server<A
103 NAME="IX-PGTCL-PGEXEC-2"
107 CLASS="REFSYNOPSISDIV"
134 > submits a command to the
138 > server and returns a result.
139 Command result handles start with the connection handle and add a
140 period and a result number.
143 > Note that lack of a Tcl error is not proof that the command
144 succeeded! An error message returned by the server will be
145 processed as a command result with failure status, not by
146 generating a Tcl error in <CODE
171 > The handle of the connection on which to execute the command.
181 > The SQL command to execute.
195 > A result handle. A Tcl error will be returned if
199 > was unable to obtain a server
200 response. Otherwise, a command result object is created and a
201 handle for it is returned. This handle can be passed to
205 > to obtain the results of the
214 SUMMARY="Footer navigation table"
225 HREF="pgtcl-pgconndefaults.html"
243 HREF="pgtcl-pgresult.html"
259 HREF="libpgtcl-ref.html"