8000 Skip importing snapshot we won't use, fix pgsql error handling. by dimitri · Pull Request #340 · dimitri/pgcopydb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Skip importing snapshot we won't use, fix pgsql error handling. 8000 #340

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 1 commit into from
Jun 23, 2023

Conversation

dimitri
Copy link
Owner
@dimitri dimitri commented Jun 23, 2023

Fix pgsql.c for the case when we fail to execute a SQL command without parameters, such as e.g. the very simple "COMMIT;" command. First, we might not be given a SQLSTATE, and second, we need to pay attention about that lack of debugParameters.

Also improve pgcopydb clone command to avoid importing a snapshot in the top-level process. This process might need to export a snapshot and hold-on to it while sub-processes are running, but never executes SQL itself so won't need to import a snapshot in its own transaction.

Fix pgsql.c for the case when we fail to execute a SQL command without
parameters, such as e.g. the very simple "COMMIT;" command. First, we might
not be given a SQLSTATE, and second, we need to pay attention about that
lack of debugParameters.

Also improve `pgcopydb clone` command to avoid importing a snapshot in the
top-level process. This process might need to export a snapshot and hold-on
to it while sub-processes are running, but never executes SQL itself so
won't need to import a snapshot in its own transaction.
@dimitri dimitri merged commit 94d3b63 into main Jun 23, 2023
@dimitri dimitri deleted the fix/toplevel-snapshot-and-pgsql-error-handling branch June 23, 2023 12:59
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