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

Send metrics for Postgres table statistics. #18130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amw-zero
Copy link
Contributor

What does this PR do?

Sends metrics for table statistic information stored in pg_stats. This excludes any information that includes any concrete table values, e.g. most_common_vals is excluded. That data may be sensitive and has to be treated with greater care, but the aggregate data is safe to send.

Motivation

Table statistics are very useful in determining why the query planner is choosing certain plans.

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

@amw-zero amw-zero force-pushed the alex.weisberger/dbmon-4346-pg-table-statistics-metrics branch from 388d610 to 04bdf88 Compare July 26, 2024 19:23
Copy link

The validations job has failed; please review the Files changed tab for possible suggestions to resolve.

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.

1 participant