Skip to content

Remove unused statistics collection (not actually merged, please ignore)#8174

Merged
onurctirtir merged 3 commits intobump-main-14.1develfrom
remove-stats-collector
Jan 19, 2026
Merged

Remove unused statistics collection (not actually merged, please ignore)#8174
onurctirtir merged 3 commits intobump-main-14.1develfrom
remove-stats-collector

Conversation

@onurctirtir
Copy link
Copy Markdown
Member

@onurctirtir onurctirtir commented Sep 4, 2025

DESCRIPTION: Stops on-demand statistics collection for clusters and deprecates citus.enable_statistics_collection GUC.

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 4, 2025

Codecov Report

❌ Patch coverage is 66.66667% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.91%. Comparing base (8d91902) to head (0ff6e88).
⚠️ Report is 3 commits behind head on bump-main-14.1devel.

❌ Your patch status has failed because the patch coverage (66.66%) is below the target coverage (75.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@                   Coverage Diff                   @@
##           bump-main-14.1devel    #8174      +/-   ##
=======================================================
+ Coverage                88.75%   88.91%   +0.16%     
=======================================================
  Files                      287      286       -1     
  Lines                    63231    63101     -130     
  Branches                  7921     7907      -14     
=======================================================
- Hits                     56118    56109       -9     
+ Misses                    4856     4734     -122     
- Partials                  2257     2258       +1     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@onurctirtir
Copy link
Copy Markdown
Member Author

onurctirtir commented Sep 4, 2025

Should remove citus_server_id() in 14.0 sql script once #8170 is merged.

update: No, won't remove it as it's still indirectly used by IsWorkerTheCurrentNode(). In other words, we should still have server_id in pg_dist_node_metadata, which is generated by citus_server_id().

configure Outdated
docdir
oldincludedir
includedir
runstatedir
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

are the runstatedir changes related to this diff or an accident.

a quick search only shows the term in the configure section, so it seems unrelated, but didn't look deeply

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not really sure why but when I revert everything and reapply the changes one by one again (i.e., do the C changes, remove libcurl & reports related bits from ac file and re-run autoreconf -f), again I got the exactly same patch, with autoconf == 2.69, which already seems to be the version we've been using based on the comments on top of configure

* modeled after PostgreSQL's pg_random_uuid().
*/
Datum
citus_server_id(PG_FUNCTION_ARGS)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

moved from src/backend/distributed/utils/statistics_collection.c as is

@onurctirtir onurctirtir enabled auto-merge (squash) September 19, 2025 12:31
@onurctirtir onurctirtir force-pushed the remove-stats-collector branch from c7a55c8 to 0ff6e88 Compare January 19, 2026 12:23
@onurctirtir onurctirtir changed the base branch from main to bump-main-14.1devel January 19, 2026 12:53
@onurctirtir onurctirtir merged commit e1862eb into bump-main-14.1devel Jan 19, 2026
155 of 157 checks passed
@onurctirtir onurctirtir deleted the remove-stats-collector branch January 19, 2026 12:54
@onurctirtir onurctirtir changed the title Remove unused statistics collection Remove unused statistics collection (not actually merged, please ignore) Jan 19, 2026
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