Re: date/time compatible problems in 7.2 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: date/time compatible problems in 7.2
Date
Msg-id 4554.1014262772@sss.pgh.pa.us
Whole thread Raw
In response to Re: date/time compatible problems in 7.2  (Thomas Lockhart <lockhart@fourpalms.org>)
List pgsql-hackers
Thomas Lockhart <lockhart@fourpalms.org> writes:
>> psql:/.../dbdump/.dbrestore.tmp:1624094: ERROR:  copy: line 1, Bad
>> timestamp external representation 'Fri 25 Jan 23:59:59 2002 KRAT'
>> psql:/.../dbdump/.dbrestore.tmp:1624094: lost synchronization with
>> server, resetting connection

> Not sure why it is crashing. But "KRAT" is a time zone not recognized by
> the PostgreSQL date/time parser.

The "crash" is totally expected behavior after any error during a COPY
IN.  There isn't any other way to recover except to reset the
connection.  Yes, this sucks, it's broken, etc, but there's no way to
fix it except to redesign the frontend/backend COPY protocol :-(

Trust me, this *will* get changed next time we have occasion to make
incompatible changes in the FE/BE protocol.  But I'm not sure that it's
a sufficient reason to create a protocol incompatibility all by itself.

As to the specific changes in datetime datatype behavior that cause
the error report, I bow to Thomas' superior knowledge...
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Rod Taylor"
Date:
Subject: Re: SET NULL / SET NOT NULL
Next
From: Tom Lane
Date:
Subject: Re: SET NULL / SET NOT NULL