2 F.11. dblink — connect to other PostgreSQL databases #
4 dblink_connect — opens a persistent connection to a remote database
5 dblink_connect_u — opens a persistent connection to a remote database,
8 dblink_disconnect — closes a persistent connection to a remote database
9 dblink — executes a query in a remote database
10 dblink_exec — executes a command in a remote database
11 dblink_open — opens a cursor in a remote database
12 dblink_fetch — returns rows from an open cursor in a remote database
13 dblink_close — closes a cursor in a remote database
14 dblink_get_connections — returns the names of all open named dblink
17 dblink_error_message — gets last error message on the named connection
18 dblink_send_query — sends an async query to a remote database
19 dblink_is_busy — checks if connection is busy with an async query
20 dblink_get_notify — retrieve async notifications on a connection
21 dblink_get_result — gets an async query result
22 dblink_cancel_query — cancels any active query on the named connection
23 dblink_get_pkey — returns the positions and field names of a relation's
26 dblink_build_sql_insert — builds an INSERT statement using a local
27 tuple, replacing the primary key field values with alternative
30 dblink_build_sql_delete — builds a DELETE statement using supplied
31 values for primary key field values
33 dblink_build_sql_update — builds an UPDATE statement using a local
34 tuple, replacing the primary key field values with alternative
37 dblink is a module that supports connections to other PostgreSQL
38 databases from within a database session.
40 dblink can report the following wait events under the wait event type
44 Waiting to establish a connection to a remote server.
47 Waiting to establish a connection to a remote server when it
48 could not be found in the list of already-opened connections.
51 Waiting to receive the results of a query from a remote server.
53 See also postgres_fdw, which provides roughly the same functionality
54 using a more modern and standards-compliant infrastructure.