stark(at)postgresql(dot)org (Greg Stark) writes:
> Oops, don't forget to rewind the directory before scanning it to fsync files in CREATE DATABASE
This is certainly not right:
+ AllocateDir(fromdir);
if (xldir == NULL)
ereport(ERROR,
There's no guarantee AllocateDir will hand back the same pointer as
it did the previous time.
regards, tom lane