【发布时间】:2019-04-08 10:44:38
【问题描述】:
这是我经常遇到的问题。
Postgresql 随机停止并且不接收新连接(例如,pgAdmin、SQuirrel)。 我必须重新启动计算机几次,直到服务成功启动。 当服务启动时,我有以下日志:
2017-08-27 19:52:17 -03 FATAL: the database system is starting up
2017-08-27 19:52:17 -03 LOG: database system was interrupted; last known up at 2017-08-27 18:17:21 -03
2017-08-27 19:52:19 -03 FATAL: the database system is starting up
2017-08-27 19:52:19 -03 LOG: database system was not properly shut down; automatic recovery in progress
2017-08-27 19:52:19 -03 LOG: invalid record length at 0/1CD7CE8: wanted 24, got 0
2017-08-27 19:52:19 -03 LOG: redo is not required
2017-08-27 19:52:19 -03 LOG: MultiXact member wraparound protections are now enabled
2017-08-27 19:52:19 -03 LOG: sistema de banco de dados está pronto para aceitar conexões
2017-08-27 19:52:19 -03 LOG: autovacuum launcher started
我有 i7、8GB 和 Windows 10。今天我使用 Postgresql 9.6
我已经安装了不同版本的Postgresql(9.4、9.5),但是我无法解决。
有人有解决问题的想法吗?
错误前的日志:
2017-08-27 18:16:52 -03 LOG: could not receive data from client: unrecognized winsock error 10054
2017-08-27 18:16:52 -03 LOG: could not receive data from client: unrecognized winsock error 10054
2017-08-27 18:16:52 -03 LOG: could not receive data from client: unrecognized winsock error 10054
2017-08-27 18:17:24 -03 LOG: could not receive data from client: unrecognized winsock error 10054
2017-08-27 18:17:24 -03 LOG: unexpected EOF on client connection with an open transaction
2017-08-27 18:17:24 -03 LOG: could not receive data from client: unrecognized winsock error 10054
2017-08-27 18:17:24 -03 LOG: could not receive data from client: unrecognized winsock error 10054
2017-08-27 18:17:24 -03 LOG: could not receive data from client: unrecognized winsock error 10054
2017-08-27 18:17:24 -03 LOG: could not receive data from client: unrecognized winsock error 10054
2017-08-27 18:26:53 -03 WARNING: worker took too long to start; canceled
2017-08-27 18:27:53 -03 WARNING: worker took too long to start; canceled
2017-08-27 18:28:53 -03 WARNING: worker took too long to start; canceled
...
2017-08-27 19:51:48 -03 ERROR: canceling statement due to user request
【问题讨论】:
-
您可能想查看同级站点 dba.StackExchange.com。
-
您的确切 Postgres 版本是什么? (包括第三个数字)。
-
当前版本为“PostgreSQL 9.6.3, Visual C++ build 1800, 64-bit编译”。我检查了这个问题@a_horse_with_no_name,但即使没有执行任何查询也会出现问题。
标签: postgresql