githubEdit

F.11. dblink

dblink_connectarrow-up-right

— opens a persistent connection to a remote database

dblink_connect_uarrow-up-right

— opens a persistent connection to a remote database, insecurely

dblink_disconnectarrow-up-right

— closes a persistent connection to a remote database

dblinkarrow-up-right

— executes a query in a remote database

dblink_execarrow-up-right

— executes a command in a remote database

dblink_openarrow-up-right

— opens a cursor in a remote database

dblink_fetcharrow-up-right

— returns rows from an open cursor in a remote database

dblink_closearrow-up-right

— closes a cursor in a remote database

dblink_get_connectionsarrow-up-right

— returns the names of all open named dblink connections

dblink_error_messagearrow-up-right

— gets last error message on the named connection

dblink_send_queryarrow-up-right

— sends an async query to a remote database

dblink_is_busyarrow-up-right

— checks if connection is busy with an async query

dblink_get_notifyarrow-up-right

— retrieve async notifications on a connection

dblink_get_resultarrow-up-right

— gets an async query result

dblink_cancel_queryarrow-up-right

— cancels any active query on the named connection

dblink_get_pkeyarrow-up-right

— returns the positions and field names of a relation's primary key fields

dblink_build_sql_insertarrow-up-right

— builds an INSERT statement using a local tuple, replacing the primary key field values with alternative supplied values

dblink_build_sql_deletearrow-up-right

— builds a DELETE statement using supplied values for primary key field values

dblink_build_sql_updatearrow-up-right

— builds an UPDATE statement using a local tuple, replacing the primary key field values with alternative supplied values

dblinkis a module that supports connections to otherPostgreSQLdatabases from within a database session.

See alsopostgres_fdwarrow-up-right, which provides roughly the same functionality using a more modern and standards-compliant infrastructure.

Last updated

Was this helpful?