Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

use bigint for db size report

Bo Lu87bb75889747
diff --git a/studio/pages/project/[ref]/reports/database.tsx b/studio/pages/project/[ref]/reports/database.tsx
index 5f42a823de7..75c8f6ee23f 100644
--- a/studio/pages/project/[ref]/reports/database.tsx
+++ b/studio/pages/project/[ref]/reports/database.tsx
@@ -50,7 +50,7 @@ const DatabaseUsage: FC<any> = () => {
let cancel = false
const getDatabaseSize = async () => {
const res = await meta.query(
- 'select sum(pg_database_size(pg_database.datname))::integer as db_size from pg_database;'
+ 'select sum(pg_database_size(pg_database.datname))::bigint as db_size from pg_database;'
)
if (!res.error && !cancel) {
setDatabaseSize(res[0].db_size)