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

Parse each row of pg_stat_activity separately inside a try/catch #18762

Merged
merged 4 commits into from
Oct 3, 2024

Conversation

sethsamuel
Copy link
Contributor

What does this PR do?

Parses each row in pg_stat_activity individually.

Motivation

Azure databases are inserting invalid UTF8 into the pg_stat_activity table. To avoid crashing we need to parse each row individually and skip rows with invalid UTF8.

Additional Notes

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Changelog entries must be created for modifications to shipped code
  • Add the qa/skip-qa label if the PR doesn't need to be tested during QA.
  • If you need to backport this PR to another branch, you can add the backport/<branch-name> label to the PR and it will automatically open a backport PR once this one is merged

@sethsamuel sethsamuel merged commit 721ee62 into master Oct 3, 2024
44 of 45 checks passed
@sethsamuel sethsamuel deleted the seth.samuel/DBMON-4634 branch October 3, 2024 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants