-
Notifications
You must be signed in to change notification settings - Fork 639
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
Make citus_stat_tenants work with schema-based tenants. #6936
Merged
gokhangulbiz
merged 27 commits into
main
from
gokhangulbiz/schema-based-tenant-monitoring
Jun 13, 2023
Merged
Changes from 26 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
b86bea2
Make ColocationIdGetTenantSchemaId accessable
gokhangulbiz 495c7e2
Set colocationId even it has no partition key.
gokhangulbiz d888966
Set colocationId and partitionKeyValue for tasks even it has no parti…
gokhangulbiz b9c4ca4
Make tenant monitoring work with schema-based tenants
gokhangulbiz e847a22
Add regression tests.
gokhangulbiz 83b5f0e
Comments & indents
gokhangulbiz fea3b1c
Update tenants statistics annotations normalization
gokhangulbiz bcae49d
Indent
gokhangulbiz 80a52a0
Set colocationId and partitionKey if workerJob has a valid colocationId.
gokhangulbiz 8ff5d36
Move schema lookup logic to UDF's
gokhangulbiz 7241615
Merge branch 'main' into gokhangulbiz/schema-based-tenant-monitoring
gokhangulbiz e2ba016
Merge branch 'main' into gokhangulbiz/schema-based-tenant-monitoring
gokhangulbiz 50194fe
Fix permissions for newly introduced udfs
gokhangulbiz 6341c0a
Merge branch 'main' into gokhangulbiz/schema-based-tenant-monitoring
gokhangulbiz 95ebd12
Indent
gokhangulbiz 56691d7
Fix downgrade sql scripts
gokhangulbiz ad0e7c3
Merge branch 'main' into gokhangulbiz/schema-based-tenant-monitoring
gokhangulbiz a65ea36
magic number fix
gokhangulbiz b712ffa
Add missing header
gokhangulbiz 5eb6c76
Add tests for single shard distributed tables
gokhangulbiz 7b762cb
Merge branch 'main' into gokhangulbiz/schema-based-tenant-monitoring
gokhangulbiz 6284039
Merge branch 'main' of https://github.com/citusdata/citus into gokhan…
gokhangulbiz 54ead77
Add null-check in FillTenantStatsHashkey
gokhangulbiz 9fca27b
Fix expected test output
gokhangulbiz dcfe045
Set client_min_messages to warning before drop schema to prevent flak…
gokhangulbiz 91661a6
Merge branch 'main' into gokhangulbiz/schema-based-tenant-monitoring
gokhangulbiz 4dc9d23
Merge branch 'main' of https://github.com/citusdata/citus into gokhan…
gokhangulbiz File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
src/backend/distributed/sql/udfs/citus_stat_tenants_local/12.0-1.sql
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can keep the
workerJob->colocationId != 0
check, might be a nice optimization for multi shard queries with many tasks.