Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Thanks. Wonder why my testing worked? I guess xmalloc was giving me
> zeroed memory.
One-shot programs like initdb are very likely to see all-zeroed memory,
since that's what the kernel gives you. It's only after you start
freeing things that you'll get nonzero areas from malloc ...
regards, tom lane