Always make a BufferAccessStrategy for ANALYZE
David Rowley <drowley@postgresql.org>
Always make a BufferAccessStrategy for ANALYZE 32fbe0239 changed things so we didn't bother allocating the BufferAccessStrategy during VACUUM (ONLY_DATABASE_STATS); and VACUUM (FULL), however, it forgot to consider that VACUUM (FULL, ANALYZE) is a possible combination. That change would have resulted in such a command allowing ANALYZE to make full use of shared buffers, which wasn't intended, so fix that. Reported-by: Melanie Plageman Discussion: https://postgr.es/m/CAAKRu_bJRKe+v_=OqwC+5sA3j5qv8rqdAwy3+yHaO3wmtfrCRg@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/vacuum.c | modified | +5 −3 |
Discussion
- Option to not use ringbuffer in VACUUM, using it in failsafe mode 79 messages · 2023-01-11 → 2023-04-28