Skip to content

Commit eeac59b

Browse files
committed
Merge branch '381-ci-checker-logs-artifact' into 'master'
fix (ci_checker) : do not use a non-existing column in the logerrors stat query (#381) Closes #381 See merge request postgres-ai/database-lab!543
2 parents bd39666 + 1db723b commit eeac59b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/internal/observer/stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func (c *ObservingClone) getMaxQueryTime(ctx context.Context, maxTime *float64)
129129
func (c *ObservingClone) countLogErrors(ctx context.Context, logErrors *LogErrors) error {
130130
row := c.superUserDB.QueryRow(ctx, `select coalesce(sum(count), 0), coalesce(string_agg(distinct message, ','), '')
131131
from pg_log_errors_stats()
132-
where type in ('ERROR', 'FATAL') and database = current_database()`)
132+
where type in ('ERROR', 'FATAL')`)
133133

134134
return row.Scan(&logErrors.Count, &logErrors.Message)
135135
}

0 commit comments

Comments
 (0)