简体   繁体   English

恢复期间 PostgreSQL 12 零大小的 wal 存档日志问题

[英]PostgreSQL 12 zero sized wal archive logs issue during recovery

I am having this issue with the PostgreSQL database running using DAS disks.我在使用 DAS 磁盘运行 PostgreSQL 数据库时遇到了这个问题。 I have enabled Archive logs on the PostgreSQL configuration.我在 PostgreSQL 配置上启用了存档日志。 When the server crashes I see a lot of zero-sized WAL archive logs getting created as seen in the picture below.当服务器崩溃时,我看到许多零大小的 WAL 存档日志被创建,如下图所示。 What is the recovery process as PostgreSQL complains it is not 16MB in size. PostgreSQL 抱怨它的大小不是 16MB 时的恢复过程是什么。 So I tried deleting or filling it to 16MB size to do the recovery.所以我尝试将其删除或填充到 16MB 大小以进行恢复。 It seems to be working fine but is this a correct process to do the recovery.它似乎工作正常,但这是进行恢复的正确过程。 Any insights would be really appreciated.任何见解将不胜感激。 Have you any of you faced this problem before?你们中有人遇到过这个问题吗? I have raised a bug with PostgreSQL as well regarding the same.我也提出了一个关于 PostgreSQL 的错误。

PostgreSQL zero-sized WAL logs: PostgreSQL 零大小的 WAL 日志:

PostgreSQL 零大小的 WAL 日志

You probably ran out of disk space.您可能用完了磁盘空间。

At any rate, PostgreSQL will bemoan these WAL segments and stop recovering before the first one, which is the right thing to do.无论如何,PostgreSQL 会哀叹这些 WAL 段并在第一个之前停止恢复,这是正确的做法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM