Improve major version upgrade copy missing files with cp
Current mechanism to copy missing files from old lib64 folder in order to make them available to pg_upgrade
command during major version upgrade SGDbOps operation is slow since it uses a custom method with recursive shell functions. Try to replace it using a more performant method.
Implementation plan
The command cp -auv
can be used as a replacement for this operation.
Acceptance Criteria
-
Refactor the copy of missing file method -
Pass the current dbops-major-version-upgrade* E2E tests