Skip to content

Commit 506a408

Browse files
committed
Fix username field in check_txn_idle; broken when adding support for objects owned by group roles in commit d55287f
1 parent 6160c12 commit 506a408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check_postgres.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8102,7 +8102,7 @@ sub check_txn_idle {
81028102
$whodunit = sprintf q{%s:%s %s:%s %s:%s%s%s %s:%s},
81038103
msg('PID'), $maxr->{pid},
81048104
msg('database'), $maxr->{datname},
8105-
msg('username'), $maxr->{rolname},
8105+
msg('username'), $maxr->{usename},
81068106
$maxr->{client_addr} eq '' ? '' : (sprintf ' %s:%s', msg('address'), $maxr->{client_addr}),
81078107
($maxr->{client_port} eq '' or $maxr->{client_port} < 1)
81088108
? '' : (sprintf ' %s:%s', msg('port'), $maxr->{client_port}),

0 commit comments

Comments
 (0)