File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4267,7 +4267,7 @@ metrics:
42674267 11 : |-
42684268 select /* pgwatch_generated */
42694269 (extract(epoch from now()) * 1e9)::int8 as epoch_ns,
4270- case pg_is_in_recovery() when 't' then 2
4270+ case pg_is_in_recovery() WHEN 't' then 2
42714271 else (select case (select count(*) from pg_stat_replication where application_name != 'pg_basebackup') when '0' then 0 else 1 end)
42724272 end as in_recovery_int;
42734273 gauges :
@@ -4277,12 +4277,12 @@ metrics:
42774277 archiver_pending_count :
42784278 sqls :
42794279 11 : |-
4280- SELECT /* pgwatch_generated */
4280+ select /* pgwatch_generated */
42814281 (extract(epoch from now()) * 1e9)::int8 as epoch_ns,
42824282 count(*) as archiver_pending_count
4283- FROM
4284- (SELECT pg_ls_dir('pg_wal/archive_status')) a
4285- WHERE
4283+ from
4284+ (select pg_ls_dir('pg_wal/archive_status')) a
4285+ where
42864286 pg_ls_dir ~ '[0-9A-F]{24}.ready';
42874287
42884288presets :
You can’t perform that action at this time.
0 commit comments