mirror of
https://github.com/dimitri/pgloader.git
synced 2026-01-29 19:11:05 +01:00
Handle other conditions in process-catalogs.
It might be that some random condition is signaled during process-catalogs, causing the errors reported so far and that I can't reproduce. Let's add some handler-case protection to have more clues about what could be happening. See #865, #800, #810, #859, #824.
This commit is contained in:
parent
743769d750
commit
4ab26e5387
@ -341,7 +341,7 @@
|
||||
(return-from copy-database))
|
||||
(condition (e)
|
||||
(log-message :error
|
||||
"ERROR ~a: ~a"
|
||||
"~a: ~a"
|
||||
(conn-type (source-db copy))
|
||||
e)
|
||||
(return-from copy-database))))
|
||||
@ -368,6 +368,10 @@
|
||||
|
||||
(citus-rule-is-missing-from-list (e)
|
||||
(log-message :fatal "~a" e)
|
||||
(return-from copy-database))
|
||||
|
||||
(condition (e)
|
||||
(log-message :fatal "Failed to process catalogs: ~a" e)
|
||||
(return-from copy-database)))
|
||||
|
||||
;; if asked, first drop/create the tables on the PostgreSQL side
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user