pgsql: Fix alignment problems with SharedInvalSmgrMsg.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix alignment problems with SharedInvalSmgrMsg.
Date: 2022-09-28 11:59:55
Message-ID: E1odVjG-002Nvd-Th@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0222be137188ac3912d244d832a328be0944f3e9

Modified Files
--------------
src/backend/utils/cache/inval.c | 9 +++++++--
src/include/storage/sinval.h | 7 +++++--
2 files changed, 12 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2022-09-28 12:05:42 pgsql: Fix InitializeRelfilenumberMap for 05d4cbf9b6ba708858984b01ca0fc
Previous Message Alvaro Herrera 2022-09-28 11:48:06 pgsql: Remove publicationcmds.c's expr_allowed_in_node as a function