summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2025-12-08 13:52:42 +0100
committerPeter Eisentraut <peter@eisentraut.org>2025-12-08 14:54:32 +0100
commit804046b39a27973751c920f8f41504697f3f52d5 (patch)
treed520df22fdab53cad27883ff711f9087a0b8844e /src/interfaces/ecpg
parent31280d96a64850f5a9a924088890ab43a2905237 (diff)
Use PGAlignedXLogBlock for some code simplification
The code in BootStrapXLOG() and in pg_test_fsync.c tried to align WAL buffers in complicated ways. Also, they still used XLOG_BLCKSZ for the alignment, even though that should now be PG_IO_ALIGN_SIZE. This can now be simplified and made more consistent by using PGAlignedXLogBlock, either directly in BootStrapXLOG() and using alignas in pg_test_fsync.c. Reviewed-by: Chao Li <li.evan.chao@gmail.com> Reviewed-by: Thomas Munro <thomas.munro@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/f462a175-b608-44a1-b428-bdf351e914f4%40eisentraut.org
Diffstat (limited to 'src/interfaces/ecpg')
0 files changed, 0 insertions, 0 deletions