克里斯托夫·佩图斯:关于max_wal_size的更多探讨

In a comment on my earlier post on max_wal_size, Lukas Fittl asked a perfectly reasonable question: Re: “The only thing it costs you is disk space; there’s no other problem with it being...

Lukas Fittl提出了高max_wal_size会导致崩溃后恢复时间变长的问题。根据经验,不希望max_wal_size达到100GB,以避免数据库恢复时间过长。然而,调优建议是增加max_wal_size以确保checkpoint_timeout触发checkpoint。但Lukas指出,崩溃恢复时间与需要重放的WAL数量成正比,受max_wal_size限制。如果恢复速度是问题,应适度使用max_wal_size。

原文英文,约300词,阅读约需2分钟。发表于:
阅读原文