4 dblink_error_message — gets last error message on the named connection
8 dblink_error_message(text connname) returns text
12 dblink_error_message fetches the most recent remote error message for a
18 Name of the connection to use.
22 Returns last error message, or OK if there has been no error in this
27 When asynchronous queries are initiated by dblink_send_query, the error
28 message associated with the connection might not get updated until the
29 server's response message is consumed. This typically means that
30 dblink_is_busy or dblink_get_result should be called prior to
31 dblink_error_message, so that any error generated by the asynchronous
32 query will be visible.
36 SELECT dblink_error_message('dtest1');