Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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