Re: Expansion of our checks for connection-loss errors

2020-10-09 Thread Tom Lane
I wrote: > Hmm, excellent point. While our code response to all these errors > should be the same, you are right that that doesn't extend to emitting > identical error texts. For EHOSTUNREACH/ENETDOWN/ENETUNREACH, we > should say something like "connection to server lost", without claiming > that

Re: Expansion of our checks for connection-loss errors

2020-10-09 Thread Tom Lane
Fujii Masao writes: > On 2020/10/09 4:15, Tom Lane wrote: >> -#ifdef ECONNRESET >> -case ECONNRESET: >> +case ALL_CONNECTION_LOSS_ERRNOS: >> printfPQExpBuffer(&conn->errorMessage, >>

Re: Expansion of our checks for connection-loss errors

2020-10-09 Thread Fujii Masao
On 2020/10/09 4:15, Tom Lane wrote: Over in the thread at [1], we've tentatively determined that the reason buildfarm member lorikeet is currently failing is that its network stack returns ECONNABORTED for (some?) connection failures, whereas our code is only expecting ECONNRESET. Fujii Masao

Re: Expansion of our checks for connection-loss errors

2020-10-08 Thread Kyotaro Horiguchi
At Thu, 08 Oct 2020 21:41:55 -0400, Tom Lane wrote in > Kyotaro Horiguchi writes: > > At Thu, 08 Oct 2020 15:15:54 -0400, Tom Lane wrote in > >> Accordingly, I propose the attached patch (an expansion of > >> Fujii-san's) that causes us to test for all five errnos anyplace > >> we had been che

Re: Expansion of our checks for connection-loss errors

2020-10-08 Thread Tom Lane
Kyotaro Horiguchi writes: > At Thu, 08 Oct 2020 15:15:54 -0400, Tom Lane wrote in >> Accordingly, I propose the attached patch (an expansion of >> Fujii-san's) that causes us to test for all five errnos anyplace >> we had been checking for ECONNRESET. > +1 for the direction. > In terms of conn

Re: Expansion of our checks for connection-loss errors

2020-10-08 Thread Kyotaro Horiguchi
At Thu, 08 Oct 2020 15:15:54 -0400, Tom Lane wrote in > Over in the thread at [1], we've tentatively determined that the > reason buildfarm member lorikeet is currently failing is that its > network stack returns ECONNABORTED for (some?) connection failures, > whereas our code is only expecting E

Expansion of our checks for connection-loss errors

2020-10-08 Thread Tom Lane
Over in the thread at [1], we've tentatively determined that the reason buildfarm member lorikeet is currently failing is that its network stack returns ECONNABORTED for (some?) connection failures, whereas our code is only expecting ECONNRESET. Fujii Masao therefore proposes that we treat ECONNAB