Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
dblink_send_query
Prev UpF.14. dblink — connect to other Postgres Pro databasesHome Next

dblink_send_query

dblink_send_query — sends an async query to a remote database

Synopsis

dblink_send_query(text connname, text sql) returns int

Description

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 withdblink_is_busy, and the results are ultimately collected withdblink_get_result. It is also possible to attempt to cancel an active async query usingdblink_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.

Examples

SELECT dblink_send_query('dtest1', 'SELECT * FROM foo WHERE f1 < 3');

Prev Up Next
dblink_error_message Home dblink_is_busy
pdfepub
Go to Postgres Pro Standard 17
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp