2014-01-06 34 views
1

当我想插入一行到表。 它总是挂在等待不能成功。PostgreSQL插入数据总是失败进程挂断

postgres 17941 2092 0 16:42 ?  00:00:00 /usr/lib/postgresql/9.1/bin/postgres -D /var/lib/postgresql/9.1/main -c config_file=/etc/postgresql/9.1/main/postgresql.conf 
postgres 17943 17941 0 16:42 ?  00:00:00 postgres: writer process                          
postgres 17944 17941 0 16:42 ?  00:00:00 postgres: wal writer process                         
postgres 17945 17941 0 16:42 ?  00:00:00 postgres: autovacuum launcher process                      
postgres 17946 17941 0 16:42 ?  00:00:00 postgres: stats collector process                       
postgres 18326 17941 0 16:51 ?  00:00:00 postgres: admin gt_development 127.0.0.1(40309) COMMIT waiting for 0/1217CA98 

谁能帮帮我?

+1

这应该是有益的修正:http://wiki.postgresql.org/wiki/Lock_Monitoring这:http://wiki.postgresql.org/wiki/Lock_dependency_information –

+0

它从进程状态看它等待WAL记录写入磁盘(也可能发送到一个或多个备用服务器)。你有备用服务器吗? – harmic

+0

检查PostgreSQL服务器日志文件以查看是否有任何有用/信息性消息。您还应该检查'dmesg'或您的操作系统内核错误日志,以查看是否有任何I/O错误或文件系统错误报告。请使用这些信息编辑您的问题,然后在您完成后点评此处,因为这会通知其他人这个信息。 –

回答

0

感谢您的回复。

我已经重新安装纯正将PostgreSQL 9.1