简体   繁体   中英

PostgreSQL 12 zero sized wal archive logs issue during recovery

I am having this issue with the PostgreSQL database running using DAS disks. I have enabled Archive logs on the PostgreSQL configuration. When the server crashes I see a lot of zero-sized WAL archive logs getting created as seen in the picture below. What is the recovery process as PostgreSQL complains it is not 16MB in size. So I tried deleting or filling it to 16MB size to do the recovery. 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 zero-sized WAL logs:

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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