Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql 为什么自动吸尘器不给我的桌子吸尘?_Postgresql_Postgresql 9.5_Autovacuum - Fatal编程技术网

Postgresql 为什么自动吸尘器不给我的桌子吸尘?

Postgresql 为什么自动吸尘器不给我的桌子吸尘?,postgresql,postgresql-9.5,autovacuum,Postgresql,Postgresql 9.5,Autovacuum,我的模式中有一个表没有自动清空。如果我运行真空贴子在表上,真空过程很好地完成,但是autovacuum守护进程由于某些原因从未对表进行真空处理。 有没有办法找出原因?可能的原因是什么 那很好,没什么好担心的 该表是唯一的中型表(300万行) 如果死元组的数量超过活动元组的Autovacuum\u scale\u factor(默认值:0.2),则Autovacuum将启动,因此如果删除或更新了超过20%的表 这通常很好,我不会改变它。但如果你出于某种原因想这样做,你可以这样做: ALTER TA

我的模式中有一个表没有自动清空。如果我运行
真空贴子
在表上,真空过程很好地完成,但是autovacuum守护进程由于某些原因从未对表进行真空处理。 有没有办法找出原因?可能的原因是什么


那很好,没什么好担心的

该表是唯一的中型表(300万行)

如果死元组的数量超过活动元组的
Autovacuum\u scale\u factor
(默认值:0.2),则Autovacuum将启动,因此如果删除或更新了超过20%的表

这通常很好,我不会改变它。但如果你出于某种原因想这样做,你可以这样做:

ALTER TABLE posts SET (autovacuum_vacuum_scale_factor = 0.1);