Re: More time spending with "delete pending"
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Alexander Lakhin <exclusion@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>, Tom Lane <tgl@sss.pgh.pa.us>, Justin Pryzby <pryzby@telsasoft.com>
Date: 2021-07-12T04:07:17Z
Lists: pgsql-hackers
On Fri, Jul 09, 2021 at 09:00:00PM +0300, Alexander Lakhin wrote: > Thank you! I agree with your improvement. I can't remember why did I > inject 'include "port.h"' in genfile.c. > Today I've rechecked all the chain of includes and I see that stat() is > redefined as _pgstat64() in win32_port.h, that includes <sys/stat.h>. > genfile.c includes "postgres.h" (that includes win32_port.h indirectly) > and then includes <sys/stat.h> again, but the later include should be > ignored due "#pragma once" in stat.h. > So I have no objection to the removal of that include. Thanks, that matches my impression. There was one comment at the top of _pgstat64() that was still incorrect. I have spent more time checking and tested this stuff today, and that looks fine. One question pending is if we should increase the timeout used by WIN32's stat() and open(), but the buildfarm should be able to tell us more here. -- Michael
Commits
-
Revert "Fix issues with Windows' stat() for files pending on deletion"
- 5e60237ad1b4 14.0 landed
- 2c9b46c090e7 15.0 landed
-
Fix issues with Windows' stat() for files pending on deletion
- de1510e2f5a1 14.0 landed
- 54fb8c7ddf15 15.0 landed