Manage the whole class of "integrity violation" errors.

This commit is contained in:
Dimitri Fontaine 2014-01-23 14:59:46 +01:00
parent 59e87b84a0
commit 4cbe4b3218

View File

@ -93,7 +93,7 @@ details about the format, and format specs."
;; If PostgreSQL signals a data error, process the batch by isolating
;; erroneous data away and retrying the rest.
((or
CL-POSTGRES-ERROR:UNIQUE-VIOLATION
CL-POSTGRES-ERROR:INTEGRITY-VIOLATION
CL-POSTGRES-ERROR:DATA-EXCEPTION) (condition)
(retry-batch table-name columns batch count condition)))))