From ca9e35927429722da6b825a41bb2f1184777fbb5 Mon Sep 17 00:00:00 2001 From: Felix Yuan Date: Thu, 29 Jun 2023 15:50:40 -0700 Subject: [PATCH] SQL formatting Signed-off-by: Felix Yuan --- collector/pg_stat_activity_autovacuum_active.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/collector/pg_stat_activity_autovacuum_active.go b/collector/pg_stat_activity_autovacuum_active.go index c516f955..48fe5a7b 100644 --- a/collector/pg_stat_activity_autovacuum_active.go +++ b/collector/pg_stat_activity_autovacuum_active.go @@ -46,14 +46,23 @@ var ( SELECT v.phase, CASE +<<<<<<< HEAD when a.query ~ '^autovacuum.*to prevent wraparound' then 'wraparound' when a.query ~* '^vacuum' then 'user' when a.pid is null then 'idle' ELSE 'regular' END AS mode, count(1) AS workers_count +======= + WHEN a.query ~ '^autovacuum.*to prevent wraparound' THEN 'wraparound' + WHEN a.query ~* '^vacuum' THEN 'user' + WHEN a.pid is NULL THEN 'idle' + ELSE 'regular' + END as mode, + count(1) as workers_count +>>>>>>> c928d57 (SQL formatting) FROM pg_stat_progress_vacuum v - LEFT JOIN pg_catalog.pg_stat_activity a using (pid) + LEFT JOIN pg_catalog.pg_stat_activity a USING (pid) GROUP BY 1,2 ` )