PG_SENDQUERY_PREPARED(n)
β¨ NAME β¨
pg_sendquery_prepared β send a request to execute a prepared statement to the backend connection, without waiting for a result. okay so bestie, this page is brought to you by the PostgreSQL Tcl Interface Documentation, and yes we're doing this π
.
π SYNOPSIS π
pg_sendquery_prepared conn statementName [args]
No cap, that's the whole call β slay. β¨
π DESCRIPTION π
pg_sendquery_prepared submits a command to the PostgreSQL server. It works like pg_exec, except that it does not return a result. Instead, the command is issued to the backend asynchronously β it's giving main character energy, but that's literally what the manpage says, not me adding lore.
The result is either an error message or nothing. An empty return indicates that the command was dispatched to the backend. So if you get nothing back, that does not mean the vibes are off; it means the command got sent. π«Ά
πΈ ARGUMENTS πΈ
connβ the handle of the connection on which to execute the command.statementNameβ the name of the prepared SQL statement to execute asynchronously.argsβ consists of zero or more optional values that can be inserted, unquoted, into the SQL statement using$-style substitution. iykyk, keep that unquoted detail in mind.
π¦ RETURN VALUE π¦
A Tcl error will be returned if pgtcl was unable to issue the command. Otherwise, an empty string will be returned. It is up to the developer to use pg_getresult to obtain results from commands issued with pg_sendquery. yes, pg_sendquery β that's what the page says, so we're keeping it exactly like that, bestie. π
quick vibe check: empty string back = command was dispatched; Tcl error = pgtcl couldn't issue it. The actual results are a whole separate quest via pg_getresult π.
mwah π β signed off by the PostgreSQL Tcl Interface Documentation, footer source/version PG_SEND...PREPARED(), dated 17 September 2020. periodt. π«Άβ¨
π¦ where this page comes from
- alpine 3.22: pgtcl-doc 3.1.0-r0 Β· BSD-3-Clause
- alpine 3.23: pgtcl-doc 3.1.1-r0 Β· BSD-3-Clause
- alpine 3.24: pgtcl-doc 3.1.1-r0 Β· BSD-3-Clause
- nixpkgs unstable: pgtcl 3.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms