Skip to content

Change SHOW USERS to list connections#1040

Merged
JelteF merged 1 commit intopgbouncer:masterfrom
JelteF:admin-max_user_connections
Mar 14, 2024
Merged

Change SHOW USERS to list connections#1040
JelteF merged 1 commit intopgbouncer:masterfrom
JelteF:admin-max_user_connections

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
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