opens a persistent connection to a remote database
+
+
+
dblink_connect(text connstr) returns text
opens a persistent connection to a remote database, insecurely
+
+
+
dblink_connect_u(text connstr) returns text
closes a persistent connection to a remote database
+
+
+
dblink_disconnect() returns text
executes a query in a remote database
+
+
+
dblink(text connname, text sql [, bool fail_on_error]) returns setof record
executes a command in a remote database
+
+
+
dblink_exec(text connname, text sql [, bool fail_on_error]) returns text
opens a cursor in a remote database
+
+
+
dblink_open(text cursorname, text sql [, bool fail_on_error]) returns text
returns rows from an open cursor in a remote database
+
+
+
dblink_fetch(text cursorname, int howmany [, bool fail_on_error]) returns setof record
closes a cursor in a remote database
+
+
+
dblink_close(text cursorname [, bool fail_on_error]) returns text
returns the names of all open named dblink connections
+
+
+
dblink_get_connections() returns text[]
gets last error message on the named connection
+
+
+
dblink_error_message(text connname) returns text
sends an async query to a remote database
+
+
+
dblink_send_query(text connname, text sql) returns int
checks if connection is busy with an async query
+
+
+
dblink_is_busy(text connname) returns int
retrieve async notifications on a connection
+
+
+
dblink_get_notify() returns setof (notify_name text, be_pid int, extra text)
gets an async query result
+
+
+
dblink_get_result(text connname [, bool fail_on_error]) returns setof record
cancels any active query on the named connection
+
+
+
dblink_cancel_query(text connname) returns text
+
+
+
dblink_get_pkey(text relname) returns setof dblink_pkey_results
+
+
dblink_build_sql_insert
+
+
dblink_build_sql_insert(text relname,
+
+
dblink_build_sql_delete
+
+
dblink_build_sql_delete(text relname,
+
+
dblink_build_sql_update
+
+
dblink_build_sql_update(text relname,