历史版本。 PostgreSQL 9.2 已结束支持。 2017-11-09. 请参阅 当前版本手册.
dblink_error_message
dblink_error_message — gets last error message on the named connection
大纲
dblink_error_message(text connname) returns text
Description
dblink_error_message fetches the most recent remote
error message for a given connection.
Arguments
connnameName of the connection to use.
Return Value
Returns last error message, or an empty string if there has been no error in this connection.
Examples
SELECT dblink_error_message('dtest1');