DBLINK_SEND_QUERY(3)
π NAME π
okay so this is the DBLINK_SEND_QUERY(3) page from the PostgreSQL 16.15 docs, and it's literally about dblink_send_query β which sends an async query to a remote database. periodt. β¨
β¨ SYNOPSIS β¨
dblink_send_query(text connname, text sql) returns int
π¦ DESCRIPTION π¦
dblink_send_query sends a query to be executed asynchronously β meaning it fires it off without immediately waiting for the result. bestie, it's giving "send it and go live your life" energy. π
π¨ important vibe check: there must not be an async query already in progress on the connection. like, one at a time, pls.
After successfully dispatching an async query, completion status can be checked with dblink_is_busy, and the results are ultimately collected with dblink_get_result. It is also possible to attempt to cancel an active async query using dblink_cancel_query. π¦
π ARGUMENTS π
connnameβ Name of the connection to use. π«Άsqlβ The SQL statement that you wish to execute in the remote database, for exampleselect * from pg_class.
πΈ RETURN VALUE πΈ
Returns 1 if the query was successfully dispatched, 0 otherwise. no cap. π
π EXAMPLES π
SELECT dblink_send_query('dtest1', 'SELECT * FROM foo WHERE f1 < 3');
okay that's the whole page, mwah π β source/version: PostgreSQL 16.15, dated 2026, and the page is DBLINK_SEND_QUERY(3). πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql16-docs 16.15-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms