Bruce Momjian <bruce(at)momjian(dot)us> writes:
> Very good points. The attached patch fixes the copy parameter and
> addresses the errno issue by just using errno direcdtly after the
> _dosmaperr call.
You did not change the comment
* Returns the text of the error message for the given error number
even though no error number is a "given" parameter anymore. Maybe
"... for the most-recently-reported error"?
regards, tom lane