You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudberry.apache.org by "Alena0704 (via GitHub)" <gi...@apache.org> on 2026/10/09 16:37:42 UTC
[PR] Add native maintenance timing and visibility-map statistics [cloudberry]
Alena0704 opened a new pull request, #2104:
URL: https://github.com/apache/cloudberry/pull/2104
### What does this PR do?
Expose maintenance duration and visibility-map stability through native
cumulative statistics and catalog views.
- Track VACUUM and ANALYZE elapsed time, index vacuum time, and database
vacuum totals.
- Measure cost-based delays when track_cost_delay_timing is enabled and
expose delay time in progress reporting.
- Count completed vacuums that entered failsafe mode and vacuums interrupted
by errors.
- Track cleared all-visible and all-frozen VM bits.
- Add pg_class.relallfrozen and maintain it through vacuum, analyze and
relation lifecycle operations.
- Measure active AO vacuum phases, excluding gaps between phases.
Expose the statistics through SQL getters and local, per-instance and cluster
summary views. Catalog exposure and tests are kept in a separate commit.
### Test Plan
- Added SQL and isolation coverage for VM and AO behavior.
### Impact
Changes the pg_class layout and bumps the catalog version; development
clusters require initdb. Updates the cumulative-statistics file format.
### Type of Change
- [ ] Bug fix (non-breaking change)
- [x] New feature (non-breaking change)
- [ ] Breaking change (fix or feature with breaking changes)
- [x] Documentation update
### Breaking Changes
<!-- Remove if not applicable. If yes, explain impact and migration path -->
### Test Plan
<!-- How did you test these changes? -->
- [ ] Unit tests added/updated
- [x] Integration tests added/updated
- [ ] Passed `make installcheck`
- [ ] Passed `make -C src/test installcheck-cbdb-parallel`
### Checklist
- [x] Followed [contribution guide](https://cloudberry.apache.org/contribute/code)
- [x] Added/updated documentation
- [ ] Reviewed code for security implications
- [ ] This PR contains AI-assisted code generation
- [ ] Requested review from [cloudberry committers](https://github.com/orgs/apache/teams/cloudberry-committers)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: commits-help@cloudberry.apache.org