Repository navigation
pgclone 4.9.0 — on_error=continue for schema/database clone
This release has no SQL-level changes; after make install, restart PostgreSQL, then ALTER EXTENSION pgclone UPDATE.
Added
"on_error": "continue"(discussion #41) forpgclone.schema()/pgclone.database(). A table that fails (for example a COPY into a table whose definition differs) is rolled back in its own subtransaction, reported with aWARNING(message and SQLSTATE), skipped from the foreign-key and trigger passes, and the clone carries on with the next table. The function returnsCOMPLETED WITH ERRORS: N table(s) failed: ...instead ofOK. Default stays"abort". Cancels and shutdowns are never swallowed.schema_async()already continued past failed tables, so it needs no option.- New
test/test_continue_on_error.sh.