Re: avtovacuum queue

From: Artem Tomyuk <admin(at)leboutique(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: avtovacuum queue
Date: 2018-04-02 15:30:14
Message-ID: CANYYVqJUqffUYd_kCb8bYxpCnhPkzDrOrHk1V=0GXv=aLtSoUA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi, Tom,

thanks for your reply, the problem is that our app use temp tables a lot so
the pg_attribute getting "bloated",
i've noticed that during business hours autovacuum vacuum is not being
triggered on pg_attribute,
but during night time it triggered every two hours, both vacuum and
analyze, maybe you know why?

my autovacuum conf is:

autovacuum_max_workers = 16 # max number of autovacuum
subprocesses

# (change requires restart)

autovacuum_naptime = 51min # time between autovacuum runs

autovacuum_vacuum_threshold = 500 # min number of row updates before

# vacuum

autovacuum_analyze_threshold = 500 # min number of row updates before

# analyze

autovacuum_vacuum_scale_factor = 0.002 # fraction of table size before
vacuum

autovacuum_analyze_scale_factor = 0.01 # fraction of table size before
analyze

2018-04-02 18:18 GMT+03:00 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:

> Artem Tomyuk <admin(at)leboutique(dot)com> writes:
> > Is there any "queue" in postgres where tables that marked to be vacuumed
> or
> > analyzed can be viewed?
>
> No, there's no queue as such. You can look at the contents of
> pg_stat_all_tables, particularly the n_dead_tup and n_mod_since_analyze
> columns, to get a sense of which tables are likely to seem highest
> priority to the autovacuum code.
>
> regards, tom lane
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message David G. Johnston 2018-04-02 15:34:39 Re: avtovacuum queue
Previous Message Tom Lane 2018-04-02 15:18:19 Re: avtovacuum queue