pgsql.cc 提供对 postgresql.org 官网内容的中文翻译,由 Pigsty 团队维护。
dblink_send_query — sends an async query to a remote database
dblink_send_query(text connname, text sql) returns int
dblink_send_query sends a query to be executed asynchronously, that is, without immediately waiting for the result. There must not be an async query already in progress on the connection.
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.
connnameName of the connection to use.
sqlThe SQL statement that you wish to execute in the remote database, for example select * from pg_class.
Returns 1 if the query was successfully dispatched, 0 otherwise.
SELECT dblink_send_query('dtest1', 'SELECT * FROM foo WHERE f1 < 3');
译文有误、术语不当或页面显示问题,请到译文仓库 pgsty/pgdoc 报告译文问题。 英文原文本身的问题,请在当前版本的对应页面向上游反馈;上游不再修订已结束维护的版本。