Bruce Momjian <pgman@candle.pha.pa.us> writes:
> + elog(WARNING, "can not remove \"%s\": %s", filepath, strerror(errno));
"could not remove", please; read the message style guidelines.
Also, what's wrong with using %m here?
Otherwise it looks good.
regards, tom lane