We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 804044a commit ca9e359Copy full SHA for ca9e359
collector/pg_stat_activity_autovacuum_active.go
@@ -46,14 +46,23 @@ var (
46
SELECT
47
v.phase,
48
CASE
49
+<<<<<<< HEAD
50
when a.query ~ '^autovacuum.*to prevent wraparound' then 'wraparound'
51
when a.query ~* '^vacuum' then 'user'
52
when a.pid is null then 'idle'
53
ELSE 'regular'
54
END AS mode,
55
count(1) AS workers_count
56
+=======
57
+ WHEN a.query ~ '^autovacuum.*to prevent wraparound' THEN 'wraparound'
58
+ WHEN a.query ~* '^vacuum' THEN 'user'
59
+ WHEN a.pid is NULL THEN 'idle'
60
+ ELSE 'regular'
61
+ END as mode,
62
+ count(1) as workers_count
63
+>>>>>>> c928d57 (SQL formatting)
64
FROM pg_stat_progress_vacuum v
- LEFT JOIN pg_catalog.pg_stat_activity a using (pid)
65
+ LEFT JOIN pg_catalog.pg_stat_activity a USING (pid)
66
GROUP BY 1,2
67
`
68
)
0 commit comments