Postgresql 中文操作指南
dblink_cancel_query
dblink_cancel_query — 取消在指定连接上的任何活动查询
dblink_cancel_query — cancels any active query on the named connection
Description
dblink_cancel_query 尝试取消在指定连接上正在进行的查询。请注意,这不确定会成功(例如,远程查询可能已完成)。取消请求只是提高查询很快会失败的几率。您仍必须完成常规查询协议,例如通过调用 dblink_get_result 完成。
dblink_cancel_query attempts to cancel any query that is in progress on the named connection. Note that this is not certain to succeed (since, for example, the remote query might already have finished). A cancel request simply improves the odds that the query will fail soon. You must still complete the normal query protocol, for example by calling dblink_get_result.