ROX-32944: add caller hint to cursor names for traceability#20756
ROX-32944: add caller hint to cursor names for traceability#20756dashrews78 wants to merge 2 commits into
Conversation
Cursor names now include the calling method (e.g. Walk, WalkByQuery,
WalkMetadataByQuery) between the table name and random suffix, making
them traceable in pg_stat_activity. Format: {table}_{hint}_{random4}.
Also reduced random suffix from 16 to 4 chars since cursors only need
uniqueness within a single transaction.
Partially generated by AI
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
This change is part of the following stack: Change managed by git-spice. |
|
Skipping CI for Draft Pull Request. |
🚀 Build Images ReadyImages are ready for commit 6a571df. To use with deploy scripts: export MAIN_IMAGE_TAG=4.11.x-1099-g6a571dfacb |
roxvet requires pkg/sync over stdlib sync, and golangci-lint modernize linter requires WaitGroup.Go over Add+go func+Done. Partially generated by AI Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
/retest |
|
/test checks |
|
@dashrews78: The specified target(s) for The following commands are available to trigger optional jobs: Use DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/test create-custom-snapshot |
|
@dashrews78: The specified target(s) for The following commands are available to trigger optional jobs: Use DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Description
Cursor names now include the calling method (e.g. Walk, WalkByQuery,
WalkMetadataByQuery) between the table name and random suffix, making
them traceable in pg_stat_activity. Format: {table}{hint}{random4}.
Also reduced random suffix from 16 to 4 chars since cursors only need
uniqueness within a single transaction.
Partially generated by AI
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
User-facing documentation
Testing and quality
Automated testing
How I validated my change
The unit test should be sufficient here.