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 system.user_processes system table #50422

Closed
KochetovNicolai opened this issue Jun 1, 2023 · 0 comments · Fixed by #50492
Closed

Add system.user_processes system table #50422

KochetovNicolai opened this issue Jun 1, 2023 · 0 comments · Fixed by #50492
Assignees
Labels

Comments

@KochetovNicolai
Copy link
Member

Use case

Add table system.user_processes, which will show memory usage and profile counters per user. based on the info stored in ProcessListForUser.

In theory, information can be get from system.processes grouping by user. Motivation for adding a separate table:

  • Memory usage per user is not a sum of memory usage per query for the user. It may happen when memory is allocated in one scope and deallocated in another (which is usually a bug).
  • It may be not convenient to sum profile events (it's a map)
  • Entry for the user is stored even if there are no running queries. Info like peak memory usage may be useful.
@antaljanosbenjamin antaljanosbenjamin self-assigned this Jun 1, 2023
@antaljanosbenjamin antaljanosbenjamin linked a pull request Jun 2, 2023 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants