Robert,
> This looks very non-portable to me.
Unsurprisingly, I'm new to postgres hacking and the large number of
supported platforms :)
I was considering something like:
unsigned int spaces;const unsigned int wordsize = sizeof(unsigned int);
memset(&spaces, ' ', wordsize);
In most cases, the compiler should be able to optimise the memset out,
but it may introduce overhead where this is not possible.
However, are there any supported platforms where sizeof(unsigned int) !=
4 ?
Cheers,
Jeremy