----- Original Message ----- From: "Tom Lane" <[EMAIL PROTECTED]>
> Bruce Momjian <[EMAIL PROTECTED]> writes: > > I have attached and applied the following patch to use makeNode for > > structures that will later be cast to Node*, rather than having them be > > allocated as stack variables. > > AFAICT, this adds unnecessary palloc overhead without actually reducing > the risk of optimization problems. > Even without the extra overhead, the danger of strict-aliasing is not just related to alignment. As I understand it, given strict-aliasing assumptions the compiler is free to reorder some operations on things it thinks can't be the same thing, or even optimise them away because they can have no effect. I'm not 100% sure we have avoided that danger. Quote from nice page on this subject: "ISO C is not your grandfather's C". :-) cheers andrew ---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to increase your free space map settings