对于postgres SQL >=9.0版本,自动清理功能默认为开启
,我们可以进行检查。但在postgresql.conf
文件中,自动清理的状态可能不是开启
。
#autovacuum = on # Enable autovacuum subprocess? 'on'
需要明确地打开
自动清理
吗?对于postgres SQL >=9.0版本,自动清理功能默认为开启
,我们可以进行检查。但在postgresql.conf
文件中,自动清理的状态可能不是开启
。
#autovacuum = on # Enable autovacuum subprocess? 'on'
自动清理
吗?
psql
中运行SHOW autovaccuum;
命令可以显示服务器当前使用的值。 - Craig Ringer