Propagate parallel VACUUM's buffer access strategy.

Peter Geoghegan <pg@bowt.ie>

Commit: 49f49defe7c0a330cca084de5da14ccdfdafc6a3
Author: Peter Geoghegan <pg@bowt.ie>
Date: 2021-04-05T21:56:56Z
Releases: 14.0
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.

Files

PathChange+/−
src/backend/access/heap/vacuumlazy.c modified +7 −0