Re: New IndexAM API controlling index vacuum strategies
Peter Geoghegan <pg@bowt.ie>
From: Peter Geoghegan <pg@bowt.ie>
To: Masahiko Sawada <sawada.mshk@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2020-12-29T07:51:47Z
Lists: pgsql-hackers
On Mon, Dec 28, 2020 at 11:20 PM Peter Geoghegan <pg@bowt.ie> wrote: > > That's a very good result in terms of skipping lazy_vacuum_heap(). How > > much the table and indexes bloated? Also, I'm curious about that which > > tests in choose_vacuum_strategy() turned vacuum_heap on: 130 test or > > test if maintenance_work_mem space is running out? And what was the > > impact on clearing all-visible bits? > > The pgbench_accounts heap table and 3 out of 4 of its indexes (i.e. > all indexes except "abalance_ruin") had zero growth. They did not even > become larger by 1 block. As I often say when talking about work in > this area, this is not a quantitative difference -- it's a qualitative > difference. (If they grew even a tiny amount, say by only 1 block, > further growth is likely to follow.) I forgot to say: I don't know what the exact impact was on the VM bit setting, but I doubt that it was noticeably worse for the patch. It cannot have been better, though. It's inherently almost impossible to keep most of the VM bits set for long with this workload. Perhaps VM bit setting would be improved with workloads that have some HOT updates, but as I mentioned this workload only had non-HOT updates (except in a tiny number of cases where abalance did not change, just by random luck). I also forget to say that the maintenance_work_mem test wasn't that relevant, though I believe it triggered once. maintenance_work_mem was set very high (5GB). Here is a link with more details information, in case that is interesting: https://drive.google.com/file/d/1TqpAQnqb4SMMuhehD8ELpf6Cv9A8ux2E/view?usp=sharing -- Peter Geoghegan
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Don't truncate heap when VACUUM's failsafe is in effect.
- 60f1f09ff443 14.0 landed
-
Teach VACUUM to bypass unnecessary index vacuuming.
- 5100010ee4d5 14.0 landed
-
Add wraparound failsafe to VACUUM.
- 1e55e7d1755c 14.0 landed
-
Truncate line pointer array during VACUUM.
- 3c3b8a4b2689 14.0 landed
-
Remove tupgone special case from vacuumlazy.c.
- 8523492d4e34 14.0 landed
-
Refactor lazy_scan_heap() loop.
- 7ab96cf6b312 14.0 landed
-
Propagate parallel VACUUM's buffer access strategy.
- 49f49defe7c0 14.0 cited
-
Simplify state managed by VACUUM.
- b4af70cb2103 14.0 landed
-
Notice that heap page has dead items during VACUUM.
- 0ea71c93a06d 14.0 landed
-
Adjust lazy_scan_heap() accounting comments.
- 7cde6b13a9b6 14.0 cited
-
Use full 64-bit XID for checking if a deleted GiST page is old enough.
- 6655a7299d83 13.0 cited
-
Fix some problems with VACUUM (INDEX_CLEANUP FALSE).
- dd6959798885 12.0 cited