1DBLINK_DISCONNECT(3)     PostgreSQL 15.4 Documentation    DBLINK_DISCONNECT(3)
2
3
4

NAME

6       dblink_disconnect - closes a persistent connection to a remote database
7

SYNOPSIS

9       dblink_disconnect() returns text
10       dblink_disconnect(text connname) returns text
11

DESCRIPTION

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

ARGUMENTS

18       connname
19           The name of a named connection to be closed.
20

RETURN VALUE

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

EXAMPLES

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 15.4                      2023                 DBLINK_DISCONNECT(3)
Impressum