小编use*_*820的帖子

虽然进程正在运行,但postgresql autovacuum无法正常工作

我在Ubuntu上运行PostgreSQL 9.2.autovacuum进程正在服务器上运行.

数据库负载很重,1000次添加和100次删除每天,但似乎autovacuum没有启动.

原木中没有任何与真空有关的东西.

ps -ef | grep -i vacuum

生产: postgres 1406 1130 0 Oct13 00:00:14 postgres: autovacuum launcher process

运行查询SELECT last_autovacuum , last_autoanalyze FROM pg_stat_user_tables; 在最后一个autovacuum列中不生成任何记录,并且2在suto_analyze列中输入.

postgresql.conf的相关部分是:

#------------------------------------------------------------------------------
# AUTOVACUUM PARAMETERS
#------------------------------------------------------------------------------

autovacuum = on         # Enable autovacuum subprocess?  'on'
                    # requires track_counts to also be on.
log_autovacuum_min_duration = 250   # -1 disables, 0 logs all actions and
                    # their durations, > 0 logs only
                    # actions running at least this number
                    # of milliseconds.
autovacuum_max_workers …
Run Code Online (Sandbox Code Playgroud)

database postgresql ubuntu autovacuum

8
推荐指数
1
解决办法
7867
查看次数

标签 统计

autovacuum ×1

database ×1

postgresql ×1

ubuntu ×1