8000 Implement a --fail-fast option. by dimitri · Pull Request #222 · dimitri/pgcopydb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Implement a --fail-fast option. #222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 29, 2023
Merged

Implement a --fail-fast option. #222

merged 4 commits into from
Mar 29, 2023

Conversation

dimitri
Copy link
Owner
@dimitri dimitri commented Mar 28, 2023

This option allows pgcopydb to abort as soon as an error happens in one of the sub-processes. For this, a TERM signal is sent to the process group. The option can also be set from the environment variable PGCOPYDB_FAIL_FAST.

In passing, improve the sequence setting code for error management. As soon as a sequence reset operation has failed, the Postgres transaction is broken. Use savepoints to allow the error management code to continue then.

dimitri added 4 commits March 28, 2023 17:19
8000
This option allows pgcopydb to abort as soon as an error happens in one of
the sub-processes. For this, a TERM signal is sent to the process group. The
option can also be set from the environment variable PGCOPYDB_FAIL_FAST.

In passing, improve the sequence setting code for error management. As soon
as a sequence reset operation has failed, the Postgres transaction is
broken. Use savepoints to allow the error management code to continue then.
@dimitri dimitri merged commit 30a1bf5 into main Mar 29, 2023
@dimitri dimitri deleted the feature/fail-fast branch March 29, 2023 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0