pg_exec dbHandle queryString
pg_exec submits a query to the Postgres backend and returns a result. Query result handles start with the connection handle and add a period and a result number.
Note that lack of a Tcl error is not proof that the query succeeded! An error message returned by the backend will be processed as a query result with failure status, not by generating a Tcl error in pg_exec.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.