1、使用pg_resetwal命令重置 WAL日志首先进入postgresql\bin目录然后执行以下命令pg_resetwal.exe-f D:\soft\postgresql\detail\data2.再重启服务