diff --git a/repositories/metrics.go b/repositories/metrics.go index 8c57c07..594fbed 100644 --- a/repositories/metrics.go +++ b/repositories/metrics.go @@ -16,7 +16,7 @@ FROM information_schema.tables WHERE table_schema = ? GROUP BY table_schema` -const sizeTplPostgres = `SELECT pg_database_size('%s');` +const sizeTplPostgres = `SELECT pg_database_size(?);` const sizeTplSqlite = ` SELECT page_count * page_size as size