[go: nahoru, domu]

Skip to content
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

uses shutil.move instead of copy and unlink #960

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

toydarian
Copy link
Contributor

This should speed up serving wal-files from the spool-directory, in case pg_wal and the spool-directory are on the same filesystem, as in this case the file is renamed instead of copied.
If those directories are on different file-systems, this doesn't change anything, as shutil.move will do the same 2-step-process (copy and remove) in that case. Docs for reference.

Also see ticket #943

@toydarian toydarian requested a review from a team as a code owner July 8, 2024 07:15
barman/clients/walrestore.py Outdated Show resolved Hide resolved
barman/clients/walrestore.py Show resolved Hide resolved
Copy link
Contributor
@gcalacoci gcalacoci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@martinmarques
Copy link
Contributor

The only thing I'd like to see added is a note to the docs regarding the performance, but conversations are happening inside the team to redesign the whole docs, so I'm going to add an internal ticket for us to track this little piece of doc changes to the architecture part.

@martinmarques martinmarques self-requested a review July 15, 2024 09:32
@gcalacoci gcalacoci merged commit b66e10a into EnterpriseDB:master Jul 17, 2024
7 checks passed
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.

None yet

4 participants