Skip to content

Commit 253cd33

Browse files
committed
.
1 parent 4e3339a commit 253cd33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/pg_stat_database.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func (PGStatDatabaseCollector) Update(ctx context.Context, instance *instance, c
209209
rows, err := db.QueryContext(ctx,
210210
`SELECT
211211
datid
212-
,datname
212+
,COALESCE(datname, 'vazio') AS datname,
213213
,numbackends
214214
,xact_commit
215215
,xact_rollback

0 commit comments

Comments
 (0)