aboutsummaryrefslogtreecommitdiff
path: root/src/include/postgres_ext.h
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2014-03-18 11:19:13 -0400
committerRobert Haas <rhaas@postgresql.org>2014-03-18 11:23:13 -0400
commit3bd261ca18c67eafe18088e58fab511e3b965418 (patch)
tree73b28579f3fcd1fa9d5a1bacaa7eee8282f530e0 /src/include/postgres_ext.h
parent19f2d6cdae2bfa97c2ce8a7f5ac453a91f40704a (diff)
downloadpostgresql-3bd261ca18c67eafe18088e58fab511e3b965418.tar.gz
postgresql-3bd261ca18c67eafe18088e58fab511e3b965418.zip
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.
Diffstat (limited to 'src/include/postgres_ext.h')
0 files changed, 0 insertions, 0 deletions