Re: \copy: unexpected response (4)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Neil Best <nbest(at)ci(dot)uchicago(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: \copy: unexpected response (4)
Date: 2009-08-07 16:35:40
Message-ID: 23794.1249662940@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Neil Best <nbest(at)ci(dot)uchicago(dot)edu> writes:
> Tom Lane-2 wrote:
>> Hmm. It looks like psql could get into an infinite loop if the server
>> failed to exit COPY IN mode for some reason, but it's not at all clear
>> how that could happen (or what to do about it). What server version
>> and what psql version is this? What does the server's log show?
>> Can you provide a reproducible test case?

> Maybe it is a networking issue after all. I also thought to check the
> server logs and found this:

> 2009-08-06 16:53:20 CDTERROR: invalid input syntax for integer: "68.84"
> 2009-08-06 16:53:20 CDTCONTEXT: COPY gm4, line 411272, column gm4c: "68.84"
> 2009-08-06 16:53:20 CDTSTATEMENT: COPY gm4 FROM STDIN CSV
> 2009-08-06 16:53:20 CDTLOG: SSL renegotiation failure
> 2009-08-06 16:53:20 CDTSTATEMENT: COPY gm4 FROM STDIN CSV
> 2009-08-06 16:53:20 CDTLOG: SSL error: unexpected record
> 2009-08-06 16:53:20 CDTSTATEMENT: COPY gm4 FROM STDIN CSV
> 2009-08-06 16:53:20 CDTLOG: could not send data to client: Connection reset
> by peer

Hmm, so it looks like the connection dropped and libpq failed to
recognize that, or maybe libpq was okay but psql needs to check a bit
more carefully here. I'll take a look.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sam Mason 2009-08-07 16:36:06 Re: psql and Emacs on Windows
Previous Message Wenjian Yang 2009-08-07 16:11:10 psql and Emacs on Windows

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-08-07 16:50:39 Re: Fixing geometic calculation
Previous Message Sam Mason 2009-08-07 16:30:03 Re: Fixing geometic calculation