Fix alignment problems with SharedInvalSmgrMsg.

Robert Haas <rhaas@postgresql.org>

Commit: 0222be137188ac3912d244d832a328be0944f3e9
Author: Robert Haas <rhaas@postgresql.org>
Date: 2022-09-28T11:58:09Z
Releases: 16.0
Fix alignment problems with SharedInvalSmgrMsg.

SharedInvalSmgrMsg can't require 8-byte alignment, because then
SharedInvalidationMessage will require 8-byte alignment, which will
then cause ParseCommitRecord to fail on machines that are picky
about alignment, because it assumes that everything that gets
packed into a commit record requires only 4-byte alignment.

Another problem with 05d4cbf9b6ba708858984b01ca0fc56d59d4ec7c.

Discussion: http://postgr.es/m/3825454.1664310917@sss.pgh.pa.us

Files

PathChange+/−
src/backend/utils/cache/inval.c modified +7 −2
src/include/storage/sinval.h modified +5 −2

Discussion