When using the WAL-logged CREATE DATABASE strategy, bulk extend.

Robert Haas <rhaas@postgresql.org>

Commit: 3e63e8462f31657c8ae1c541c92daf43ede8f038
Author: Robert Haas <rhaas@postgresql.org>
Date: 2022-08-18T15:26:34Z
Releases: 16.0
When using the WAL-logged CREATE DATABASE strategy, bulk extend.

This should improve performance, and was suggested by Andres Freund.
Back-patch to v15 to keep the code consistent across branches.

Dilip Kumar

Discussion: http://postgr.es/m/C3458199-FEDD-4356-865A-08DFAA5D4065@anarazel.de
Discussion: http://postgr.es/m/CAFiTN-sJ0vVpJrZ=R5M+g7Tr8=NN4wKOtrqOcDEsfFfnZgivVA@mail.gmail.com

Files

PathChange+/−
src/backend/storage/buffer/bufmgr.c modified +10 −1

Discussion