Unverified Commit 3e40aee7 authored by Dimitri Fontaine's avatar Dimitri Fontaine Committed by GitHub
Browse files

Fix internal return value that prevented error handling. (#204)

In case of early exit without retries from function copydb_copy_table we
would break out of the retry loop and return true, allowing pgcopydb to
continue working and report a successful return code to the OS.

In passing, also review error handling in lower-level pg_copy function to
prevent trying to COMMIT a transaction in an already failed connection.

Finally, we could have either a client-side connection error or a
server-side reported connection error: improve our code to take both the
situations into account.
parent b90dd58f
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment