logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dblink_disconnect - closes a persistent connection to a remote database

Arguments

connname The name of a named connection to be closed.

Description

dblink_disconnect() closes a connection previously opened by dblink_connect(). The form with no arguments closes an unnamed connection.

Examples

SELECT dblink_disconnect(); dblink_disconnect ------------------- OK (1 row) SELECT dblink_disconnect('myconn'); dblink_disconnect ------------------- OK (1 row) PostgreSQL 17.5 2025 DBLINK_DISCONNECT(3)

Name

dblink_disconnect - closes a persistent connection to a remote database

Return Value

Returns status, which is always OK (since any error causes the function to throw an error instead of returning).

Synopsis

dblink_disconnect() returns text dblink_disconnect(text connname) returns text

See Also