Remove some global variables from vacuum.c
authorDavid Rowley <drowley@postgresql.org>
Mon, 3 Apr 2023 03:07:25 +0000 (15:07 +1200)
committerDavid Rowley <drowley@postgresql.org>
Mon, 3 Apr 2023 03:07:25 +0000 (15:07 +1200)
commit3f476c953495e4d52a1ac776f976df16964ba592
tree77c7bd5b1f729f77be646dc3105e69e545b2d794
parent2e6ba13152624a837b67996eadfc58e75126071f
Remove some global variables from vacuum.c

Using global variables because we don't want to pass these values around
as parameters does not really seem like a great idea, so let's remove
these two global variables and adjust a few functions to accept these
values as parameters instead.

This is part of a wider patch which intends to allow the size of the
buffer access strategy that vacuum uses to be adjusted.

Author: Melanie Plageman
Reviewed-by: Bharath Rupireddy
Discussion: https://postgr.es/m/CAAKRu_b1q_07uquUtAvLqTM%3DW9nzee7QbtzHwA4XdUo7KX_Cnw%40mail.gmail.com
src/backend/commands/vacuum.c