This page in other versions: 9.1 / 9.2 / 9.3 / current (9.4)  |  Development versions: devel / 9.5  |  Unsupported versions: 8.3 / 8.4 / 9.0



dblink_error_message -- gets last error message on the named connection


dblink_error_message(text connname) returns text


dblink_error_message fetches the most recent remote error message for a given connection.



Name of the connection to use.

Return Value

Returns last error message, or an empty string if there has been no error in this connection.


SELECT dblink_error_message('dtest1');

Add Comment

Please use this form to add your own comments regarding your experience with particular features of PostgreSQL, clarifications of the documentation, or hints for other users. Please note, this is not a support forum, and your IP address will be logged. If you have a question or need help, please see the faq, try a mailing list, or join us on IRC. Note that submissions containing URLs or other keywords commonly found in 'spam' comments may be silently discarded. Please contact the webmaster if you think this is happening to you in error.

Proceed to the comment form.

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group