Skip to content

Commit a30123c

Browse files
authored
connection db not set properly
line 84 "db" does not work. Script gives Check failed to run: ERROR: database "" does not exist change "db" to "database" and script works.
1 parent f4179d4 commit a30123c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/metric-postgres-dbsize.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def run
8181
password: config[:password],
8282
connect_timeout: config[:timeout])
8383
request = [
84-
"select pg_database_size('#{config[:db]}')"
84+
"select pg_database_size('#{config[:database]}')"
8585
]
8686

8787
con.exec(request.join(' ')) do |result|

0 commit comments

Comments
 (0)