]> begriffs open source - ai-pg/blob - full-docs/txt/contrib-dblink-disconnect.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / contrib-dblink-disconnect.txt
1
2 dblink_disconnect
3
4    dblink_disconnect — closes a persistent connection to a remote database
5
6 Synopsis
7
8 dblink_disconnect() returns text
9 dblink_disconnect(text connname) returns text
10
11 Description
12
13    dblink_disconnect() closes a connection previously opened by
14    dblink_connect(). The form with no arguments closes an unnamed
15    connection.
16
17 Arguments
18
19    connname
20           The name of a named connection to be closed.
21
22 Return Value
23
24    Returns status, which is always OK (since any error causes the function
25    to throw an error instead of returning).
26
27 Examples
28
29 SELECT dblink_disconnect();
30  dblink_disconnect
31 -------------------
32  OK
33 (1 row)
34
35 SELECT dblink_disconnect('myconn');
36  dblink_disconnect
37 -------------------
38  OK
39 (1 row)