Skip to content

Commit ca9e359

Browse files
committed
SQL formatting
Signed-off-by: Felix Yuan <[email protected]>
1 parent 804044a commit ca9e359

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Diff for: collector/pg_stat_activity_autovacuum_active.go

+10-1
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,23 @@ var (
4646
SELECT
4747
v.phase,
4848
CASE
49+
<<<<<<< HEAD
4950
when a.query ~ '^autovacuum.*to prevent wraparound' then 'wraparound'
5051
when a.query ~* '^vacuum' then 'user'
5152
when a.pid is null then 'idle'
5253
ELSE 'regular'
5354
END AS mode,
5455
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)
5564
FROM pg_stat_progress_vacuum v
56-
LEFT JOIN pg_catalog.pg_stat_activity a using (pid)
65+
LEFT JOIN pg_catalog.pg_stat_activity a USING (pid)
5766
GROUP BY 1,2
5867
`
5968
)

0 commit comments

Comments
 (0)