DBLINK_DISCONNECT(3)
β¨ NAME β¨
okay so bestie, welcome to the DBLINK_DISCONNECT(3) manual page β the main character here is dblink_disconnect, and it literally closes a persistent connection to a remote database. no cap. π«Ά
πΈ SYNOPSIS πΈ
dblink_disconnect() returns text
dblink_disconnect(text connname) returns text
π¦ DESCRIPTION π¦
dblink_disconnect() closes a connection that was previously opened by dblink_connect(). the form with no arguments closes an unnamed connection. that's the vibe. π
π ARGUMENTS π
connnameβ the name of a named connection to be closed. simple as that. β¨
π RETURN VALUE π
it returns status, and that status is always OK β because any error causes the function to throw an error instead of returning. so yeah, no sneaky little error value coming back. π
π₯ EXAMPLES π₯
first up, the no-arguments form:
SELECT dblink_disconnect();
dblink_disconnect
-------------------
OK
(1 row)
then with a named connection:
SELECT dblink_disconnect('myconn');
dblink_disconnect
-------------------
OK
(1 row)
bestie note: those examples are shown exactly as they appear in the original. no editing the output, no adding extra rows. π
mwah π β this is from PostgreSQL 14.24, dated 2026, and that's the whole DBLINK_DISCONNECT(3) page. slay. π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql14-docs 14.24-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms