postgresql/src
Tom Lane 7b416c8c1a Change the declaration of struct varlena so that the length word is
represented as "char ...[4]" not "int32".  Since the length word is never
supposed to be accessed via this struct member anyway, this won't break
any existing code that is following the rules.  The advantage is that C
compilers will no longer assume that a pointer to struct varlena is
word-aligned, which prevents incorrect optimizations in TOAST-pointer
access and perhaps other places.  gcc doesn't seem to do this (at least
not at -O2), but the problem is demonstrable on some other compilers.

I changed struct inet as well, but didn't bother to touch a lot of other
struct definitions in which it wouldn't make any difference because there
were other fields forcing int alignment anyway.  Hopefully none of those
struct definitions are used for accessing unaligned Datums.
2008-02-23 19:11:55 +00:00
..
backend Change the declaration of struct varlena so that the length word is 2008-02-23 19:11:55 +00:00
bin Fix mistakes in pg_ctl's code for "start -w" that tries to cope with 2008-02-20 22:18:20 +00:00
include Change the declaration of struct varlena so that the length word is 2008-02-23 19:11:55 +00:00
interfaces Changed INFORMIX mode symbol definition yet again because the old way didn't work on NetBSD. 2008-02-17 18:42:23 +00:00
makefiles Teach pgxs.mk and Install.pm how to install files from a contrib module 2007-10-16 16:00:00 +00:00
pl Document the fix for perl 5.10 with this comment: 2008-01-23 00:55:47 +00:00
port Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
template Use SYSV semaphores rather than POSIX on Darwin >= 6.0 (i.e., OS X 10.2 2007-09-26 00:32:46 +00:00
test Make pg_regress clean out the testtablespace directory only on Windows. 2008-01-19 17:43:42 +00:00
timezone Update timezone mapping for Windows with new timezones added 2008-02-11 19:55:11 +00:00
tools Fix msvc install for cases where msgfmt (from gettext) is in a directory 2008-02-07 17:58:16 +00:00
tutorial Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
bcc32.mak Remove old-style win32 client-only visual c++ build infrastructure for everything except 2007-03-05 14:18:38 +00:00
DEVELOPERS Testing commit stuff 2006-07-10 15:50:02 +00:00
Makefile Tsearch2 functionality migrates to core. The bulk of this work is by 2007-08-21 01:11:32 +00:00
Makefile.global.in I find that an out-of-the-box installation of OSSP uuid 1.6.0 installs 2007-11-13 00:13:19 +00:00
Makefile.shlib Change $(CC) to $(COMPILER) on Solaris gcc so -m64 is passed into the 2007-02-20 22:45:57 +00:00
nls-global.mk When merging PO files, take into consideration translations in other PO 2006-04-05 13:40:15 +00:00
win32.mak Update supported standalone VC++ version to 7.1+ only, and fix 2007-08-03 10:47:11 +00:00