mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
docs: Add SQL query to check used and free space in Postgres
This commit is contained in:
@@ -71,3 +71,14 @@ ALTER SYSTEM SET max_connections = 200;
|
||||
|
||||
Then you need to restart the postgres pod.
|
||||
|
||||
|
||||
### Check used and free space in Postgres
|
||||
|
||||
```sql
|
||||
SELECT
|
||||
datname AS database_name,
|
||||
pg_size_pretty(pg_database_size(datname)) AS used_space
|
||||
FROM pg_database
|
||||
ORDER BY pg_database_size(datname) DESC;
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user