Always make a BufferAccessStrategy for ANALYZE
authorDavid Rowley <drowley@postgresql.org>
Thu, 6 Apr 2023 00:37:03 +0000 (12:37 +1200)
committerDavid Rowley <drowley@postgresql.org>
Thu, 6 Apr 2023 00:37:03 +0000 (12:37 +1200)
commitbccd6908ca82c6cba0c76b669bc81fc9f3fb60cd
tree281bb4d68669793ef53c9435361f3cd90e3bee1b
parent1d477a907e63941b58508136f92ac0b5058b68ab
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
src/backend/commands/vacuum.c