mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 17:53:59 +00:00
feat: server summary for postgres
This commit is contained in:
@@ -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
|
||||
`;
|
||||
Reference in New Issue
Block a user