postgres the database system is starting up

psql: FATAL: the database system is starting up

恢复出错,重新恢复事务日志

pg_resetxlog.exe -D ../Data -f

failed: SQLSTATE[XX001]: Data corrupted: 7 ERROR: could not read block 1289 in file "base/16384/21328": read only 0 of 8192 bytes

数据块损坏,重新备份导入即可

2025-02-26 20:27:44.570 AEDT [4099275] LOG: starting PostgreSQL 15.11 on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit 2025-02-26 20:27:44.570 AEDT [4099275] FATAL: could not create lock file "/localstorage/z5526545/pqsql/data/.s.PGSQL.5432.lock": No such file or directory 2025-02-26 20:27:44.571 AEDT [4099275] LOG: database system is shut down 2025-02-26 20:33:26.518 AEDT [4105955] LOG: starting PostgreSQL 15.11 on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit 2025-02-26 20:33:26.518 AEDT [4105955] FATAL: could not create lock file "/localstorage/z5526545/pqsql/data/.s.PGSQL.5432.lock": No such file or directory 2025-02-26 20:33:26.519 AEDT [4105955] LOG: database system is shut down 2025-02-26 20:37:47.747 AEDT [4107593] LOG: starting PostgreSQL 15.11 on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit 2025-02-26 20:37:47.747 AEDT [4107593] FATAL: could not create lock file "/localstorage/z5526545/pqsql/data/.s.PGSQL.5432.lock": No such file or directory 2025-02-26 20:37:47.748 AEDT [4107593] LOG: database system is shut down 2025-02-26 20:41:00.210 AEDT [4108498] LOG: starting PostgreSQL 15.11 on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit 2025-02-26 20:41:00.210 AEDT [4108498] LOG: listening on Unix socket "/localstorage/z5526545/pgsql/data/.s.PGSQL.5432" 2025-02-26 20:41:00.211 AEDT [4108501] LOG: database system was shut down at 2025-02-26 19:56:38 AEDT 2025-02-26 20:41:00.213 AEDT [4108498] LOG: database system is ready to accept connections 2025-02-26 20:43:23.302 AEDT [4108863] FATAL: lock file "postmaster.pid" already exists 2025-02-26 20:43:23.302 AEDT [4108863] HINT: Is another postmaster (PID 4108498) running in data directory "/localstorage/z5526545/pgsql/data"? 2025-02-26 20:46:00.311 AEDT [4108499] LOG: checkpoint starting: time 2025-02-26 20:46:04.420 AEDT [4108499] LOG: checkpoint complete: wrote 44 buffers (0.3%); 0 WAL file(s) added
最新发布
03-19
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值