Re: Error on PQputline()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Error on PQputline()
Дата
Msg-id 23432.1021679194@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Error on PQputline()  ("Dann Corbit" <DCorbit@connx.com>)
Список pgsql-hackers
"Dann Corbit" <DCorbit@connx.com> writes:
>> I'm confused too.  For starters, I cannot find that error message
>> string about 'A non-blocking socket operation could not be completed
>> immediately' anywhere.  Got any idea what's producing that?  Exactly
>> which version of libpq are you using, anyway?

> 7.1.3.  Sorry for running on fossil PostgreSQL.

No such string in 7.1.3 either.

> printfPQExpBuffer(&conn->errorMessage,
>                       "pqFlush() --  couldn't send
> data: errno=%d\n%s\n",
> errno, strerror(errno));
>                     /* We don't assume it's a fatal
> error... */
>                     return EOF;
> /*
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> ^^^^^^^
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> !!!!!!!
> */

Unless your strerror is really weird, that message is only going to have
produced "pqFlush() --  couldn't send data: errno=0\nNo error\n".
The bit about a non-blocking socket could not have come from strerror
AFAICS; it hasn't got enough context to know that.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Dann Corbit"
Дата:
Сообщение: Re: Error on PQputline()
Следующее
От: Manuel Sugawara
Дата:
Сообщение: Redhat 7.3 time manipulation bug