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

Change SHOW USERS to list connections #1040

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

JelteF
Copy link
Member

@JelteF JelteF commented Mar 13, 2024

While reviewing #1039 I had a hard time seeing if
max_user_connections was applied correctly because SHOW USERS didn't
list it. This addresses that by adding a max_user_connections and
current_connections column to the output of SHOW USERS.

Copy link
Contributor

@benchub benchub left a comment

Choose a reason for hiding this comment

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

Mostly good.

doc/usage.md Outdated
for this specific user, then the default value will be displayed.

current_connections
: Current number of connections that this user has open to the server.
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of "has open to the server", I think it would be more useful (and more accurate, given your code) to be "has open to all servers."

While reviewing pgbouncer#1039 I had a hard time max_user_connections seeing if
max_user_connections was applied correctly because `SHOW USERS` didn't
list it. This addresses that by adding a `max_user_connections` and
`current_connections` column to the output of `SHOW USERS`.
@JelteF JelteF force-pushed the admin-max_user_connections branch from 824838e to e016d78 Compare March 13, 2024 18:21
@JelteF JelteF enabled auto-merge (squash) March 13, 2024 18:22
@JelteF JelteF merged commit b1ceb1c into pgbouncer:master Mar 14, 2024
7 checks passed
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