M S <arthur_ringworn@yahoo.co.uk> writes:
> I can't think of any programs which would be locking the files (antivirus o=
> r other), but I'll have a look.
Since it's a temporary file, no other Postgres process would be touching
it. I strongly suspect an antivirus or similar tool is touching the
file just as we try to delete it.
regards, tom lane