1DBLINK_DISCONNECT(3) PostgreSQL 13.4 Documentation DBLINK_DISCONNECT(3)
2
3
4
6 dblink_disconnect - closes a persistent connection to a remote database
7
9 dblink_disconnect() returns text
10 dblink_disconnect(text connname) returns text
11
13 dblink_disconnect() closes a connection previously opened by
14 dblink_connect(). The form with no arguments closes an unnamed
15 connection.
16
18 connname
19 The name of a named connection to be closed.
20
22 Returns status, which is always OK (since any error causes the function
23 to throw an error instead of returning).
24
26 SELECT dblink_disconnect();
27 dblink_disconnect
28 -------------------
29 OK
30 (1 row)
31
32 SELECT dblink_disconnect('myconn');
33 dblink_disconnect
34 -------------------
35 OK
36 (1 row)
37
38
39
40PostgreSQL 13.4 2021 DBLINK_DISCONNECT(3)