dblink_error_message (3)
Leading comments
Title: dblink_error_message Author: The PostgreSQL Global Development Group Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> Date: 2017 Manual: PostgreSQL 9.6.5 Documentation Source: PostgreSQL 9.6.5 Language: English
NAME
dblink_error_message - gets last error message on the named connectionSYNOPSIS
dblink_error_message(text connname) returns text
DESCRIPTION
dblink_error_message fetches the most recent remote error message for a given connection.
ARGUMENTS
connname
- 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.
EXAMPLES
-
SELECT dblink_error_message('dtest1');