On Sat, 24 Feb 2001, Bruce Momjian wrote:
> I am confused why mmap() is better than writing to a real file.
It isn't, except that it allows to initialise the logfile in
one syscall, without first allocating and zeroing (and hence
dirtying) 16Mb of memory.
> Don't we need to write to a real file so it is available for database
> recovery?
The mmap isn't used for the destination, but for the source;
it's just a cheap way to get your hands on 16Mb of zeroes.
Matthew.