Re: Practical error logging for very large COPY

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Practical error logging for very large COPY
Дата
Msg-id 11766.1132674350@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Practical error logging for very large COPY  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы 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>)
Список 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 по дате отправления:

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: order by, for custom types
Следующее
От: Oleg Bartunov
Дата:
Сообщение: Re: order by, for custom types