在postgres 9.2(CentOS)中,TRUNCATE TABLE命令偶尔需要很长时间才能运行.有一次,截断一个有100K记录的表需要1.5个多小时,在其他情况下甚至更长.当我使用pgAdmin截断表时也会发生此问题.可能的原因是什么?以及如何提高截断性能?
服务器上有16GB内存,shared_buffers = 1536MB
postgresql performance truncate centos
centos ×1
performance ×1
postgresql ×1
truncate ×1