Re: [HACKERS] Question about "name" datatype

2006-05-26 Thread Tom Lane
Greg Stark <[EMAIL PROTECTED]> writes: > And indeed in pg_type the typalign column says "i" for this data type. My > question is just, why? What would be the problem with an alignment of 1 for > "name"? Probably none, but that's how it's been defined since day one, and there doesn't seem any good

[HACKERS] Question about "name" datatype

2006-05-26 Thread Greg Stark
In c.h There is the following comment: /* * We want NameData to have length NAMEDATALEN and int alignment, * because that's how the data type 'name' is defined in pg_type. * Use a union to make sure the compiler agrees. Note that NAMEDATALEN * must be a multiple of sizeof(int), else sizeof(N