git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 19f2d6c) | patch
Improve shm_mq portability around MAXIMUM_ALIGNOF and sizeof(Size).
2014年3月18日 15:19:13 +0000 (11:19 -0400)
2014年3月18日 15:23:13 +0000 (11:23 -0400)
commit 3bd261ca18c67eafe18088e58fab511e3b965418
Improve shm_mq portability around MAXIMUM_ALIGNOF and sizeof(Size).

Revise the original 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.
src/backend/storage/ipc/shm_mq.c diff | blob | blame | history
src/include/storage/shm_mq.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /