dblink_error_message return value - Mailing list pgsql-docs

From PG Doc comments form
Subject dblink_error_message return value
Date
Msg-id 153371978486.1298.2091761143788088262@wrigleys.postgresql.org
Whole thread Raw
Responses Re: dblink_error_message return value
List pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/10/static/contrib-dblink-error-message.html
Description:

Documentation says:

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

Which is invalid.

Actually it returns 'OK' string if no error was raised. Secondly
dblink_is_busy must be first called to make dblink_error_message returns an
error message. (Tested on 9.6.9)

pgsql-docs by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Document the limit on the number of parameters
Next
From: Chris Travers
Date:
Subject: Re: Release note trimming: another modest proposal