pg_sendquery — Send query asynchronously
pg_sendqueryconn
commandString
pg_sendquery
sends a command to the database and
returns immediately, without waiting for the command to complete and
without providing a result handle.
conn
The handle of the connection on which to execute the command.
commandString
The SQL command to execute.
Use pg_isbusy to see if the command is still being executed, and use pg_getresult to get the result when the command has completed.
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.