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:10:04
Message-ID: 23165.1021677004@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:
> The contents of the error message are:
> conn->errorMessage.data 0x00312440 "pqFlush() -- couldn't send data:
> errno=0
> No error A non-blocking socket operation could not be completed
> immediately.

You're running libpq with the nonblocking mode selected?

> What is the correct recovery action?

Redesign libpq's nonblock mode :-(. It's a mess; a quick hack that
doesn't even try to cover all cases, and is unreliable in the ones it
does cover. You can find my previous rants on the subject in the
archives from a couple years back (around Jan '00 I believe). IMHO
we should never have accepted that patch at all.

Short of that, don't use the COPY code with nonblock.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dann Corbit 2002-05-17 23:18:16 Re: Error on PQputline()
Previous Message Tom Lane 2002-05-17 23:01:11 Re: More schema queries