Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> Chris Campbell wrote:
>> Do the stats need to persist across postmaster restarts (or crashes)?
> After a crash we forcibly _delete_ the stat file.
I'm not sure why, though --- the writing technique seems fairly safe,
and in any case the reader checks what it's reading. Maybe we shouldn't
throw away the old stats.
regards, tom lane