如何高效删除PostgreSQL数据库/wal目录下数千个WAL(Write-Ahead Logging)文件,释放磁盘空间,同时保证数据库的完整性?
-rw-------- 1 postgres postgres 16777216 2月5日14:11 000000020000000B0000004D
-rw-------- 1 postgres postgres 16777216 2月6日03:13 000000020000000B0000004E
-rw-------- 1 postgres postgres 16777216 2月6日07:57 000000020000000B0000004F
我的备份已损坏,因为该节不断向我显示此错误。
错误:[082]:WAL 段 000000020000000B00000093 在 60000 毫秒超时之前未存档