Skip to content

Add ability to run pg_probackup using valgrind #263

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 19, 2025
Merged

Conversation

demonolock
Copy link
Contributor

No description provided.

@demonolock demonolock requested a review from fukanchik June 18, 2025 13:41
@@ -88,6 +89,7 @@ def stream_output(stream: subprocess.PIPE) -> None:

return self.process.pid

# ---- Start run function ---- #
def run(self, command, gdb=False, old_binary=False, return_id=True, env=None,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Я перестала понимать что происходит в run, поэтому немного попилила

if self.valgrind_sup_path and not os.path.isfile(self.valgrind_sup_path):
raise FileNotFoundError(f"PG_PROBACKUP_VALGRIND_SUP should contain path to valgrind suppression file, "
f"but found: {self.valgrind_sup_path}")
valgrind_cmd = [
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Отличие по сути только тут

Copy link

@fukanchik fukanchik left a comment

Choose a reason for hiding this comment

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

Works as intended.

@demonolock demonolock merged commit 44d61c2 into master Jun 19, 2025
2 checks passed
@demonolock demonolock deleted the add-valgrind branch June 19, 2025 06:53
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.

2 participants