Andreas Pflug <pgadmin(at)pse-consulting(dot)de> writes:
> I just reproduced this on win32. The file already exists, and is locked.
Oh, I'll bet it's the original copy of the table that hasn't been
removed yet. We may have an issue with SET TABLESPACE failing to close
the old file, so it can't be deleted yet on Windows ...
regards, tom lane