10000 Let "activity" command show all sessions except idle ones · postgres-ai/joe@4f02d86 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4f02d86

Browse files
NikolaySagneum
authored andcommitted
Let "activity" command show all sessions except idle ones
1 parent 94349ec commit 4f02d86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/bot/command/activity.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (c *ActivityCmd) Execute() error {
5757
coalesce((clock_timestamp() - query_start)::text, '') as query_duration,
5858
coalesce((clock_timestamp() - state_change)::text, '') as state_changed_ago
5959
from pg_stat_activity
60-
where state in ('active', 'idle in transaction', 'disabled') and pid <> pg_backend_pid();`, truncateLength)
60+
where state <> 'idle' and pid <> pg_backend_pid();`, truncateLength)
6161

6262
tableString := &strings.Builder{}
6363
tableString.WriteString(ActivityCaption)

0 commit comments

Comments
 (0)
0