2 .\" Title: dblink_disconnect
3 .\" Author: The PostgreSQL Global Development Group
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
6 .\" Manual: PostgreSQL 18.0 Documentation
7 .\" Source: PostgreSQL 18.0
10 .TH "DBLINK_DISCONNECT" "3" "2025" "PostgreSQL 18.0" "PostgreSQL 18.0 Documentation"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 dblink_disconnect \- closes a persistent connection to a remote database
35 dblink_disconnect() returns text
36 dblink_disconnect(text connname) returns text
40 \fBdblink_disconnect()\fR
41 closes a connection previously opened by
42 \fBdblink_connect()\fR\&. The form with no arguments closes an unnamed connection\&.
47 The name of a named connection to be closed\&.
51 Returns status, which is always
53 (since any error causes the function to throw an error instead of returning)\&.
60 SELECT dblink_disconnect();
62 \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
66 SELECT dblink_disconnect(\*(Aqmyconn\*(Aq);
68 \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-