小编toa*_*ong的帖子

postgres truncate很慢

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

服务器上有16GB内存,shared_buffers = 1536MB

postgresql performance truncate centos

10
推荐指数
2
解决办法
8867
查看次数

标签 统计

centos ×1

performance ×1

postgresql ×1

truncate ×1