|
29 | 29 | <refpurpose>opens a persistent connection to a remote database</refpurpose>
|
30 | 30 | </refnamediv>
|
31 | 31 |
|
| 32 | + <indexterm> |
| 33 | + <primary>dblink_connect</primary> |
| 34 | + </indexterm> |
| 35 | + |
32 | 36 | <refsynopsisdiv>
|
33 | 37 | <synopsis>
|
34 | 38 | dblink_connect(text connstr) returns text
|
@@ -189,6 +193,10 @@ DROP SERVER fdtest;
|
189 | 193 | <refpurpose>opens a persistent connection to a remote database, insecurely</refpurpose>
|
190 | 194 | </refnamediv>
|
191 | 195 |
|
| 196 | + <indexterm> |
| 197 | + <primary>dblink_connect_u</primary> |
| 198 | + </indexterm> |
| 199 | + |
192 | 200 | <refsynopsisdiv>
|
193 | 201 | <synopsis>
|
194 | 202 | dblink_connect_u(text connstr) returns text
|
@@ -242,6 +250,10 @@ dblink_connect_u(text connname, text connstr) returns text
|
242 | 250 | <refpurpose>closes a persistent connection to a remote database</refpurpose>
|
243 | 251 | </refnamediv>
|
244 | 252 |
|
| 253 | + <indexterm> |
| 254 | + <primary>dblink_disconnect</primary> |
| 255 | + </indexterm> |
| 256 | + |
245 | 257 | <refsynopsisdiv>
|
246 | 258 | <synopsis>
|
247 | 259 | dblink_disconnect() returns text
|
@@ -313,6 +325,10 @@ SELECT dblink_disconnect('myconn');
|
313 | 325 | <refpurpose>executes a query in a remote database</refpurpose>
|
314 | 326 | </refnamediv>
|
315 | 327 |
|
| 328 | + <indexterm> |
| 329 | + <primary>dblink</primary> |
| 330 | + </indexterm> |
| 331 | + |
316 | 332 | <refsynopsisdiv>
|
317 | 333 | <synopsis>
|
318 | 334 | dblink(text connname, text sql [, bool fail_on_error]) returns setof record
|
@@ -527,6 +543,10 @@ SELECT * FROM dblink('myconn', 'select proname, prosrc from pg_proc')
|
527 | 543 | <refpurpose>executes a command in a remote database</refpurpose>
|
528 | 544 | </refnamediv>
|
529 | 545 |
|
| 546 | + <indexterm> |
| 547 | + <primary>dblink_exec</primary> |
| 548 | + </indexterm> |
| 549 | + |
530 | 550 | <refsynopsisdiv>
|
531 | 551 | <synopsis>
|
532 | 552 | dblink_exec(text connname, text sql [, bool fail_on_error]) returns text
|
@@ -660,6 +680,10 @@ DETAIL: ERROR: null value in column "relnamespace" violates not-null constrain
|
660 | 680 | <refpurpose>opens a cursor in a remote database</refpurpose>
|
661 | 681 | </refnamediv>
|
662 | 682 |
|
| 683 | + <indexterm> |
| 684 | + <primary>dblink_open</primary> |
| 685 | + </indexterm> |
| 686 | + |
663 | 687 | <refsynopsisdiv>
|
664 | 688 | <synopsis>
|
665 | 689 | dblink_open(text cursorname, text sql [, bool fail_on_error]) returns text
|
@@ -780,6 +804,10 @@ SELECT dblink_open('foo', 'select proname, prosrc from pg_proc');
|
780 | 804 | <refpurpose>returns rows from an open cursor in a remote database</refpurpose>
|
781 | 805 | </refnamediv>
|
782 | 806 |
|
| 807 | + <indexterm> |
| 808 | + <primary>dblink_fetch</primary> |
| 809 | + </indexterm> |
| 810 | + |
783 | 811 | <refsynopsisdiv>
|
784 | 812 | <synopsis>
|
785 | 813 | dblink_fetch(text cursorname, int howmany [, bool fail_on_error]) returns setof record
|
@@ -929,6 +957,10 @@ SELECT * FROM dblink_fetch('foo', 5) AS (funcname name, source text);
|
929 | 957 | <refpurpose>closes a cursor in a remote database</refpurpose>
|
930 | 958 | </refnamediv>
|
931 | 959 |
|
| 960 | + <indexterm> |
| 961 | + <primary>dblink_close</primary> |
| 962 | + </indexterm> |
| 963 | + |
932 | 964 | <refsynopsisdiv>
|
933 | 965 | <synopsis>
|
934 | 966 | dblink_close(text cursorname [, bool fail_on_error]) returns text
|
@@ -1036,6 +1068,10 @@ SELECT dblink_close('foo');
|
1036 | 1068 | <refpurpose>returns the names of all open named dblink connections</refpurpose>
|
1037 | 1069 | </refnamediv>
|
1038 | 1070 |
|
| 1071 | + <indexterm> |
| 1072 | + <primary>dblink_get_connections</primary> |
| 1073 | + </indexterm> |
| 1074 | + |
1039 | 1075 | <refsynopsisdiv>
|
1040 | 1076 | <synopsis>
|
1041 | 1077 | dblink_get_connections() returns text[]
|
@@ -1077,6 +1113,10 @@ SELECT dblink_get_connections();
|
1077 | 1113 | <refpurpose>gets last error message on the named connection</refpurpose>
|
1078 | 1114 | </refnamediv>
|
1079 | 1115 |
|
| 1116 | + <indexterm> |
| 1117 | + <primary>dblink_error_message</primary> |
| 1118 | + </indexterm> |
| 1119 | + |
1080 | 1120 | <refsynopsisdiv>
|
1081 | 1121 | <synopsis>
|
1082 | 1122 | dblink_error_message(text connname) returns text
|
@@ -1136,6 +1176,10 @@ SELECT dblink_error_message('dtest1');
|
1136 | 1176 | <refpurpose>sends an async query to a remote database</refpurpose>
|
1137 | 1177 | </refnamediv>
|
1138 | 1178 |
|
| 1179 | + <indexterm> |
| 1180 | + <primary>dblink_send_query</primary> |
| 1181 | + </indexterm> |
| 1182 | + |
1139 | 1183 | <refsynopsisdiv>
|
1140 | 1184 | <synopsis>
|
1141 | 1185 | dblink_send_query(text connname, text sql) returns int
|
@@ -1214,6 +1258,10 @@ SELECT dblink_send_query('dtest1', 'SELECT * FROM foo WHERE f1 < 3');
|
1214 | 1258 | <refpurpose>checks if connection is busy with an async query</refpurpose>
|
1215 | 1259 | </refnamediv>
|
1216 | 1260 |
|
| 1261 | + <indexterm> |
| 1262 | + <primary>dblink_is_busy</primary> |
| 1263 | + </indexterm> |
| 1264 | + |
1217 | 1265 | <refsynopsisdiv>
|
1218 | 1266 | <synopsis>
|
1219 | 1267 | dblink_is_busy(text connname) returns int
|
@@ -1273,6 +1321,10 @@ SELECT dblink_is_busy('dtest1');
|
1273 | 1321 | <refpurpose>retrieve async notifications on a connection</refpurpose>
|
1274 | 1322 | </refnamediv>
|
1275 | 1323 |
|
| 1324 | + <indexterm> |
| 1325 | + <primary>dblink_get_notify</primary> |
| 1326 | + </indexterm> |
| 1327 | + |
1276 | 1328 | <refsynopsisdiv>
|
1277 | 1329 | <synopsis>
|
1278 | 1330 | dblink_get_notify() returns setof (notify_name text, be_pid int, extra text)
|
@@ -1351,6 +1403,10 @@ SELECT * FROM dblink_get_notify();
|
1351 | 1403 | <refpurpose>gets an async query result</refpurpose>
|
1352 | 1404 | </refnamediv>
|
1353 | 1405 |
|
| 1406 | + <indexterm> |
| 1407 | + <primary>dblink_get_result</primary> |
| 1408 | + </indexterm> |
| 1409 | + |
1354 | 1410 | <refsynopsisdiv>
|
1355 | 1411 | <synopsis>
|
1356 | 1412 | dblink_get_result(text connname [, bool fail_on_error]) returns setof record
|
@@ -1511,6 +1567,10 @@ contrib_regression=# SELECT * FROM dblink_get_result('dtest1') AS t1(f1 int, f2
|
1511 | 1567 | <refpurpose>cancels any active query on the named connection</refpurpose>
|
1512 | 1568 | </refnamediv>
|
1513 | 1569 |
|
| 1570 | + <indexterm> |
| 1571 | + <primary>dblink_cancel_query</primary> |
| 1572 | + </indexterm> |
| 1573 | + |
1514 | 1574 | <refsynopsisdiv>
|
1515 | 1575 | <synopsis>
|
1516 | 1576 | dblink_cancel_query(text connname) returns text
|
@@ -1577,6 +1637,10 @@ SELECT dblink_cancel_query('dtest1');
|
1577 | 1637 | </refpurpose>
|
1578 | 1638 | </refnamediv>
|
1579 | 1639 |
|
| 1640 | + <indexterm> |
| 1641 | + <primary>dblink_get_pkey</primary> |
| 1642 | + </indexterm> |
| 1643 | + |
1580 | 1644 | <refsynopsisdiv>
|
1581 | 1645 | <synopsis>
|
1582 | 1646 | dblink_get_pkey(text relname) returns setof dblink_pkey_results
|
@@ -1666,6 +1730,10 @@ SELECT * FROM dblink_get_pkey('foobar');
|
1666 | 1730 | </refpurpose>
|
1667 | 1731 | </refnamediv>
|
1668 | 1732 |
|
| 1733 | + <indexterm> |
| 1734 | + <primary>dblink_build_sql_insert</primary> |
| 1735 | + </indexterm> |
| 1736 | + |
1669 | 1737 | <refsynopsisdiv>
|
1670 | 1738 | <synopsis>
|
1671 | 1739 | dblink_build_sql_insert(text relname,
|
@@ -1796,6 +1864,10 @@ SELECT dblink_build_sql_insert('foo', '1 2', 2, '{"1", "a"}', '{"1", "b''a"}');
|
1796 | 1864 | </refpurpose>
|
1797 | 1865 | </refnamediv>
|
1798 | 1866 |
|
| 1867 | + <indexterm> |
| 1868 | + <primary>dblink_build_sql_delete</primary> |
| 1869 | + </indexterm> |
| 1870 | + |
1799 | 1871 | <refsynopsisdiv>
|
1800 | 1872 | <synopsis>
|
1801 | 1873 | dblink_build_sql_delete(text relname,
|
@@ -1910,6 +1982,10 @@ SELECT dblink_build_sql_delete('"MyFoo"', '1 2', 2, '{"1", "b"}');
|
1910 | 1982 | </refpurpose>
|
1911 | 1983 | </refnamediv>
|
1912 | 1984 |
|
| 1985 | + <indexterm> |
| 1986 | + <primary>dblink_build_sql_update</primary> |
| 1987 | + </indexterm> |
| 1988 | + |
1913 | 1989 | <refsynopsisdiv>
|
1914 | 1990 | <synopsis>
|
1915 | 1991 | dblink_build_sql_update(text relname,
|
|
0 commit comments