Skip to content

Commit b73f2ec

Browse files
committed
Merge branch 'fix-lag-query-null' into 'master'
fix: failed to read replication lag: cannot assign NULL to int See merge request postgres-ai/database-lab!618
2 parents 56ac559 + f08c84c commit b73f2ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

engine/internal/retrieval/status/retrieval_status.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const (
3232
ELSE
3333
coalesce(round(date_part('epoch', now() - pg_last_xact_replay_timestamp())::int8, 0), 0)
3434
END)
35+
ELSE 0
3536
END lag_sec;
3637
`
3738

@@ -43,6 +44,7 @@ const (
4344
ELSE
4445
coalesce(round(date_part('epoch', now() - pg_last_xact_replay_timestamp())::int8, 0), 0)
4546
END)
47+
ELSE 0
4648
END lag_sec;
4749
`
4850

0 commit comments

Comments
 (0)