1 Answer
- Newest
- Most votes
- Most comments
0
Hi,
The volume of disk is related to the size of the update log, corresponding to the activity on your database.
So, you should first measure the size of update log on your to pg to evaluate if the disk space is in proper relation with it or not. Such a request should give you the size of all logs:
SELECT sum(stat.size)
FROM pg_ls_dir(current_setting('log_directory')) AS logs
CROSS JOIN LATERAL
pg_stat_file(current_setting('log_directory') || '/' || logs) AS stat;
Note: is there a reason why DMS replication isn't permanently on? That would reduce its disk storage on source machine drastically.
Best,
Didier
Relevant content
- Accepted Answerasked 4 years ago
- asked 5 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago