Christian Ullrich <chris(at)chrullrich(dot)net> writes:
> * Tom Lane wrote:
>> But then, should not this code make sure that errno *always* gets set?
> A library function that does not fail does not touch errno.
Right, I meant "always in the error path".
>> I'd be inclined to think we should use _dosmaperr(), too, rather than
>> hand-coding it.
> Yes, of course. If only I had known about it ...
> New patch attached.
This looks good, will push shortly.
regards, tom lane