Re: Practical error logging for very large COPY - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Practical error logging for very large COPY
Date
Msg-id 11766.1132674350@sss.pgh.pa.us
Whole thread Raw
In response to Re: Practical error logging for very large COPY  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: Practical error logging for very large COPY  (Martijn van Oosterhout <kleptog@svana.org>)
Re: Practical error logging for very large COPY  (Greg Stark <gsstark@mit.edu>)
List pgsql-hackers
Martijn van Oosterhout <kleptog@svana.org> writes:
> On Tue, Nov 22, 2005 at 09:58:44AM -0500, Tom Lane wrote:
>> The general problem that needs to be solved is "trap any error that
>> occurs during attempted insertion of a COPY row, and instead of aborting
>> the copy, record the data and the error message someplace else".

> Actually, there are really only a few errors people want to trap I
> imagine:

You've forgotten bad data, eg "foo" in an integer field, or an
untranslatable multibyte character.  The bad-data problem is what lets
out trigger-based solutions, or indeed anything that presumes that the
bad data can be forced into a particular representation.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: order by, for custom types
Next
From: Oleg Bartunov
Date:
Subject: Re: order by, for custom types