Propagate parallel VACUUM's buffer access strategy.
authorPeter Geoghegan <pg@bowt.ie>
Mon, 5 Apr 2021 21:56:56 +0000 (14:56 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Mon, 5 Apr 2021 21:56:56 +0000 (14:56 -0700)
commit49f49defe7c0a330cca084de5da14ccdfdafc6a3
tree172d422da2e98f695d6c01d10642b6306d2114ac
parentb4af70cb210393c9c8f41643acf6b213e21178e7
Propagate parallel VACUUM's buffer access strategy.

Parallel VACUUM relied on global variable state from the leader process
being propagated to workers on fork().  Commit b4af70cb removed most
uses of global variables inside vacuumlazy.c, but did not account for
the buffer access strategy state.

To fix, propagate the state through shared memory instead.

Per buildfarm failures on elver, curculio, and morepork.

Many thanks to Thomas Munro for off-list assistance with this issue.
src/backend/access/heap/vacuumlazy.c