From: | Peter Geoghegan <pg(at)bowt(dot)ie> |
---|---|
To: | Feike Steenbergen <feikesteenbergen(at)gmail(dot)com> |
Cc: | PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Skip index cleanup if autovacuum did not do any work |
Date: | 2017-11-28 22:17:48 |
Message-ID: | CAH2-Wz=G3xnjcVVkQuWzzQjtBCL2D1TJjL0cbt-cDwnCAU7mfg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Nov 28, 2017 at 1:36 PM, Feike Steenbergen
<feikesteenbergen(at)gmail(dot)com> wrote:
> On a server with a very frequent xid wraparound I can see that the
> anti-wraparound vacuum is finished very quickly with the heap, yet it still
> scans all the indexes, which causes it to still have to read a lot of data,
> which takes a considerable amount of time.
BTW, a good short term solution for you might be to change the vacuum
cost delay settings. They're pretty conservative by default.
There is a good chance that your indexes are mostly in memory even on
large tables, and B-Tree indexes are read sequentially during VACUUM.
Often, autovacuum runs at a much slower rate than is actually
possible, which isn't necessarily the right trade-off.
--
Peter Geoghegan
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2017-11-28 22:18:54 | Re: [HACKERS] postgres_fdw: Add support for INSERT OVERRIDING clause |
Previous Message | Michael Paquier | 2017-11-28 22:08:44 | Re: [JDBC] [HACKERS] Channel binding support for SCRAM-SHA-256 |