> Couldn't this just be a variable in PQconnectPoll(), instead of adding
> a new structure member?
I have fixed same with a local variable in PQconnectPoll, Initally I thought savedMessage should have same visiblitly as errorMessage so we can restore the errorMessage even outside PQconnectPoll. But that seems not required. Attacting the new patch which fixes the same.