2 .\" Title: dblink_close
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_CLOSE" "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_close \- closes a cursor in a remote database
35 dblink_close(text cursorname [, bool fail_on_error]) returns text
36 dblink_close(text connname, text cursorname [, bool fail_on_error]) returns text
41 closes a cursor previously opened with
47 Name of the connection to use; omit this parameter to use the unnamed connection\&.
52 The name of the cursor to close\&.
57 If true (the default when omitted) then an error thrown on the remote side of the connection causes an error to also be thrown locally\&. If false, the remote error is locally reported as a NOTICE, and the function\*(Aqs return value is set to
62 Returns status, either
70 started an explicit transaction block, and this is the last remaining open cursor in this connection,
72 will issue the matching
80 SELECT dblink_connect(\*(Aqdbname=postgres options=\-csearch_path=\*(Aq);
82 \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
86 SELECT dblink_open(\*(Aqfoo\*(Aq, \*(Aqselect proname, prosrc from pg_proc\*(Aq);
88 \-\-\-\-\-\-\-\-\-\-\-\-\-
92 SELECT dblink_close(\*(Aqfoo\*(Aq);
94 \-\-\-\-\-\-\-\-\-\-\-\-\-\-