Re: COPY enhancements

Поиск
Список
Период
Сортировка
От Emmanuel Cecchet
Тема Re: COPY enhancements
Дата
Msg-id 4ACBF7E3.3090306@frogthinker.org
обсуждение исходный текст
Ответ на Re: COPY enhancements  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-hackers
I just realized that I forgot to CC the list when I answered to Josh... resending!

Josh,

>> I think that this was the original idea but we should probably rollback
>> the error logging if the command has been rolled back. It might be more
>> consistent to use the same hi_options as the copy command. Any idea what
>> would be best?
>>        
>
> Well, if we're logging to a file, you wouldn't be *able* to roll them
> back.  Also, presumbly, if you abort a COPY because of errors, you
> probably want to keep the errors around for later analysis.  No?
>    
You are right about the file (though this functionality is not 
implemented yet).
I don't have any strong opinion about the right behavior if COPY aborts. 
The error log table would contain tuples that were not inserted anyway. 
Now knowing whether the bad tuples come from a successful COPY command 
or not will be left to the user.

Emmanuel
-- Emmanuel Cecchet Aster Data Systems Web: http://www.asterdata.com

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