Catch PostgreSQL internal errors too, fixes #155.

This commit is contained in:
Dimitri Fontaine 2015-01-21 13:01:28 +01:00
parent 86fab763a8
commit ce5a61face
2 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,7 @@
((or
cl-postgres-error::data-exception
cl-postgres-error::integrity-violation
cl-postgres-error::internal-error
cl-postgres-error::insufficient-resources
cl-postgres-error::program-limit-exceeded) (condition)
(retry-batch table-name columns batch batch-rows condition))))
@ -201,6 +202,7 @@
((or
cl-postgres-error::data-exception
cl-postgres-error::integrity-violation
cl-postgres-error:internal-error
cl-postgres-error::insufficient-resources
cl-postgres-error::program-limit-exceeded) (next-error-in-batch)

View File

@ -24,3 +24,4 @@ LOAD CSV
1 email=>foo@example.com,a=>b
2 test=>value
3 a=>b,c=>"quoted hstore value",d=>other
4 baddata