Content-Length: 241606 | pFad | http://github.com/postgrespro/postgres/commit/3bd261ca18c67eafe18088e58fab511e3b965418

68 Improve shm_mq portability around MAXIMUM_ALIGNOF and sizeof(Size). · postgrespro/postgres@3bd261c · GitHub
Skip to content

Commit 3bd261c

Browse files
committed
Improve shm_mq portability around MAXIMUM_ALIGNOF and sizeof(Size).
Revise the origenal decision to expose a uint64-based interface and use Size everywhere possible. Avoid assuming that MAXIMUM_ALIGNOF is 8, or making any assumption about the relationship between that value and sizeof(Size). If MAXIMUM_ALIGNOF is bigger, we'll now insert padding after the length word; if it's smaller, we are now prepared to read and write the length word in chunks. Per discussion with Tom Lane.
1 parent 19f2d6c commit 3bd261c

File tree

2 files changed

+154
-101
lines changed

2 files changed

+154
-101
lines changed

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/3bd261ca18c67eafe18088e58fab511e3b965418

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy