feat: server summary for postgres

This commit is contained in:
Pavel
2025-08-14 21:33:33 +02:00
parent 90546ad4a7
commit 25fe1d03a7
6 changed files with 94 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
module.exports = `
SELECT
"datname" AS "name",
pg_database_size("datname") AS "sizeOnDisk",
0 AS "tableCount",
0 AS "viewCount",
0 AS "matviewCount"
FROM "pg_database"
WHERE "datistemplate" = false
ORDER BY pg_database_size("datname") DESC
`;