小编Bar*_*rks的帖子

postgresql 轨道计数和 autovacuum 不起作用

在启动日志条目中表明 autovacuum 不工作。我查询 pg_stat_user_tables 表并且 last_vacuum 和 last_autovacuum 列是空的,尽管我之前运行过真空查询。将 pgadmin 连接到数据库表明真空不工作。

我在两个 Ubuntu Azure VM 上使用 postgresql。一个VM设置为主,第二个是通过流式传输的复制数据库。在https://www.digitalocean.com/community/tutorials/how-to-set-up-master-slave-replication-on-postgresql-on-an-ubuntu-12-04-vps 中大致描述。

除了 autovacuum 之外,一切似乎都很有效。在启动过程中记录以下错误:

LOG:  test message did not get through on socket for statistics collector
LOG:  disabling statistics collector for lack of working socket
WARNING:  autovacuum not started because of misconfiguration
HINT:  Enable the "track_counts" option.
LOG:  database system was shut down at 2017-01-19 14:07:13 UTC
DEBUG:  checkpoint record is at 38/F6000028
Run Code Online (Sandbox Code Playgroud)

在 postgresql.config 我使用以下设置:

track_counts = on  
autovacuum = …
Run Code Online (Sandbox Code Playgroud)

postgresql ubuntu vacuum azure

5
推荐指数
1
解决办法
1599
查看次数

标签 统计

azure ×1

postgresql ×1

ubuntu ×1

vacuum ×1