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

Add n_ins_since_vacuum value to RelationStatistic #442

Merged
merged 3 commits into from
Aug 3, 2023

Conversation

keiko713
Copy link
Contributor

@keiko713 keiko713 commented Aug 2, 2023

Snapshot PR: pganalyze/collector-snapshot#33

This adds n_ins_since_vacuum to the full snapshot's RelationStatistic. This column is introduced to pg_stat_user_tables since PG13.
When the data is not available (aka below PG13), set to zero. This sadly makes it unable to distinguish between the value is actually zero and the data is not available, but I think it's okay to introduce this way to simplify as there are other things to make it clear (like the PG version).

@keiko713 keiko713 requested a review from lfittl August 2, 2023 03:06
@keiko713 keiko713 merged commit 7acbf65 into main Aug 3, 2023
3 checks passed
@keiko713 keiko713 deleted the collect-more-vacuumanalyze-data branch August 3, 2023 01:07
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