Repository navigation
Replies: 4 comments
|
Thanks, this is a fair point, and I agree it fits how psql and pg_dump behave. I've added an opt-in A failing table is rolled back on its own, reported as a WARNING with the SQLSTATE, and the clone carries on with the next table. Foreign keys and triggers are skipped for the failed table, so you don't get dangling constraints. The function returns The async/background-worker path isn't covered yet; I'll follow up on that. PR: see the linked pull request on branch |
|
Correction to my note above: |
|
This is now released in v4.9.0. Use |
|
thank you, this makes it much more easier to resume in case of a failed copy. |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
Right now, when there is an error copying data, the tool just stops. Default behaviour of psql and pg_dump is to continue on error.
For instance when you clone/mask a schema and a table is different between source and target the tools stops. On a live system, due to Foreign key relations and the like you can forget about corercting the error, resuming the cloning with a table filter as from the point it failed because of FK relations. (you do not have a consistent situation any more) So in my view it would be better that the tool just continues witht he next object, and it would be more in-line woth the postgres way of working. What do you think ? Would it be pssible to add aflag continue on error or something of the likes?
All reactions