pgsql: In pgwin32_open, loop after ERROR_ACCESS_DENIED only if we can't

2019-12-21 Thread Tom Lane
In pgwin32_open, loop after ERROR_ACCESS_DENIED only if we can't stat. This fixes a performance problem introduced by commit 6d7547c21. ERROR_ACCESS_DENIED is returned in some other cases besides the delete-pending case considered by that commit; notably, if the given path names a directory instea

pgsql: In pgwin32_open, loop after ERROR_ACCESS_DENIED only if we can't

2019-12-21 Thread Tom Lane
In pgwin32_open, loop after ERROR_ACCESS_DENIED only if we can't stat. This fixes a performance problem introduced by commit 6d7547c21. ERROR_ACCESS_DENIED is returned in some other cases besides the delete-pending case considered by that commit; notably, if the given path names a directory instea

pgsql: In pgwin32_open, loop after ERROR_ACCESS_DENIED only if we can't

2019-12-21 Thread Tom Lane
In pgwin32_open, loop after ERROR_ACCESS_DENIED only if we can't stat. This fixes a performance problem introduced by commit 6d7547c21. ERROR_ACCESS_DENIED is returned in some other cases besides the delete-pending case considered by that commit; notably, if the given path names a directory instea

pgsql: In pgwin32_open, loop after ERROR_ACCESS_DENIED only if we can't

2019-12-21 Thread Tom Lane
In pgwin32_open, loop after ERROR_ACCESS_DENIED only if we can't stat. This fixes a performance problem introduced by commit 6d7547c21. ERROR_ACCESS_DENIED is returned in some other cases besides the delete-pending case considered by that commit; notably, if the given path names a directory instea

pgsql: In pgwin32_open, loop after ERROR_ACCESS_DENIED only if we can't

2019-12-21 Thread Tom Lane
In pgwin32_open, loop after ERROR_ACCESS_DENIED only if we can't stat. This fixes a performance problem introduced by commit 6d7547c21. ERROR_ACCESS_DENIED is returned in some other cases besides the delete-pending case considered by that commit; notably, if the given path names a directory instea

pgsql: In pgwin32_open, loop after ERROR_ACCESS_DENIED only if we can't

2019-12-21 Thread Tom Lane
In pgwin32_open, loop after ERROR_ACCESS_DENIED only if we can't stat. This fixes a performance problem introduced by commit 6d7547c21. ERROR_ACCESS_DENIED is returned in some other cases besides the delete-pending case considered by that commit; notably, if the given path names a directory instea

pgsql: In pgwin32_open, loop after ERROR_ACCESS_DENIED only if we can't

2019-12-21 Thread Tom Lane
In pgwin32_open, loop after ERROR_ACCESS_DENIED only if we can't stat. This fixes a performance problem introduced by commit 6d7547c21. ERROR_ACCESS_DENIED is returned in some other cases besides the delete-pending case considered by that commit; notably, if the given path names a directory instea