Re: Error on PQputline()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Dann Corbit" <DCorbit(at)connx(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Error on PQputline()
Date: 2002-05-17 23:46:34
Message-ID: 23432.1021679194@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Dann Corbit" <DCorbit(at)connx(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Mike Castle 2002-05-17 23:56:50 Re: Psql 7.2.1 Regress tests failed on RedHat 7.3
Previous Message Dann Corbit 2002-05-17 23:41:34 Re: Error on PQputline()