COPY problem with bad dates - Mailing list pgsql-bugs

From Bruno Wolff III
Subject COPY problem with bad dates
Date
Msg-id 20021218151418.GA13494@wolff.to
Whole thread Raw
Responses Re: COPY problem with bad dates  (Bruno Wolff III <bruno@wolff.to>)
Re: COPY problem with bad dates  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
It looks like when a bad date is entered using COPY the backend connection
gets killed.
I noticed this when having a problem loading a database with several copies
in one transaction. The backend died consistantly at the same point, but
not near where the bad dates were. I eventually found the bad dates
and corrected the problem with the load. However I noticed that the
error message I got indicated the backend died, so I thought I should
try to get a simpler case that shows the same problem.
Below is a short psql example run against a 7.3 database that also
gets the backend to crash, though not in the middle of a large transaction.
bruno=> create table test (col1 timestamp);
CREATE TABLE
bruno=> copy test from stdin;
Enter data to be copied followed by a newline.
End with a backslash and a period on a line by itself.
>> 11/31/02
>> \.
ERROR:  copy: line 1, Bad timestamp external representation '11/31/02'
lost synchronization with server, resetting connection

pgsql-bugs by date:

Previous
From:
Date:
Subject: int4out(lo) does not exist (create type)
Next
From: "Böhm, Sebastian (Vendor)"
Date:
Subject: strange problem