DBLINK_DISCONNECT(3)
π¦ dblink_disconnect β DBLINK_DISCONNECT(3) π¦
okay so bestie, this is the page for dblink_disconnect from the PostgreSQL 13.23 docs. It's giving βclose that connection, queenβ energy, and honestly? Iconic. π
πΈ NAME πΈ
dblink_disconnect β closes a persistent connection to a remote database. That's the whole vibe. No cap. β¨
β¨ SYNOPSIS β¨
dblink_disconnect() returns text
dblink_disconnect(text connname) returns text
Two forms, both returning text, both ready to say bye-bye to a connection. π«Ά
π DESCRIPTION π
okay so dblink_disconnect() closes a connection previously opened by dblink_connect(). The form with no arguments closes an unnamed connection. Literally just closing the door behind you. πͺβ¨
π ARGUMENTS π
connnameβ the name of a named connection to be closed. That's it. That's the argument. Slay. π
β RETURN VALUE β
Returns status, which is always OK (since any error causes the function to throw an error instead of returning). So bestie, it's OK or it throws β no mysterious in-between behavior. periodt. π
π EXAMPLES π
No-argument form, unnamed connection, clean exit:
SELECT dblink_disconnect();
dblink_disconnect
-------------------
OK
(1 row)
Named-connection form, same energy:
SELECT dblink_disconnect('myconn');
dblink_disconnect
-------------------
OK
(1 row)
Both ate. Both returned OK. We love a consistent queen. π
okay that's the whole page, bestie β source/version: PostgreSQL 13.23, date: 2025. bye-bye connection, hello closure. ππ¦
π¦ where this page comes from
- opensuse-leap 16.0: postgresql13-docs 13.23-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