Re: Practical error logging for very large COPY statements

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Practical error logging for very large COPY statements
Дата
Msg-id 4382688B.7050700@dunslane.net
обсуждение исходный текст
Ответ на Re: Practical error logging for very large COPY statements  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Practical error logging for very large COPY  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-hackers

Tom Lane wrote:

>Simon Riggs <simon@2ndquadrant.com> writes:
>  
>
>>What I'd like to do is add an ERRORTABLE clause to COPY. The main
>>problem is how we detect a duplicate row violation, yet prevent it from
>>aborting the transaction.
>>    
>>
>
>If this only solves the problem of duplicate keys, and not any other
>kind of COPY error, it's not going to be much of an advance.
>  
>

Yeah, and I see errors from bad data as often as from violating 
constraints. Maybe the best way if we do something like this would be to 
have the error table contain a single text, or maybe bytea, field which 
contained the raw offending input line.

cheers

andrew



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: PostgreSQL 8.1.0 catalog corruption
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Should libedit be preferred to libreadline?