Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Yuan <felix.yuan@reddit.com>
  • Loading branch information
Sticksman committed Aug 24, 2023
1 parent 88434b4 commit 913817a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector/pg_long_running_transactions.go
Expand Up @@ -54,7 +54,7 @@ var (
COUNT(*) as transactions,
MAX(EXTRACT(EPOCH FROM clock_timestamp())) AS oldest_timestamp_seconds
FROM pg_catalog.pg_stat_activity
WHERE state is distinct from 'idle' AND (now() - xact_start) > '1 minutes'::interval AND query not like 'autovacuum:%'
WHERE state is distinct from 'idle' AND query not like 'autovacuum:%'
`
)

Expand Down

0 comments on commit 913817a

Please sign in to comment.