We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ac85ea commit 499612dCopy full SHA for 499612d
src/admin.rs
@@ -370,6 +370,7 @@ where
370
{
371
let columns = vec![
372
("database", DataType::Text),
373
+ ("user", DataType::Text),
374
("total_xact_count", DataType::Numeric),
375
("total_query_count", DataType::Numeric),
376
("total_received", DataType::Numeric),
@@ -390,7 +391,7 @@ where
390
391
let mut res = BytesMut::new();
392
res.put(row_description(&columns));
393
- for (_, pool) in get_all_pools() {
394
+ for ((_db_name, username), pool) in get_all_pools() {
395
for shard in 0..pool.shards() {
396
for server in 0..pool.servers(shard) {
397
let address = pool.address(shard, server);
@@ -400,8 +401,9 @@ where
400
401
};
402
403
let mut row = vec![address.name()];
404
+ row.push(username.clone());
405
- for column in &columns[1..] {
406
+ for column in &columns[2..] {
407
row.push(stats.get(column.0).unwrap_or(&0).to_string());
408
}
409
0 commit comments