Add d_type to our Windows dirent emulation.

Thomas Munro <tmunro@postgresql.org>

Commit: 87e6ed7c8c6abb6dd62119259d2fd89169a04ac0
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2020-09-07T11:38:19Z
Releases: 14.0
Add d_type to our Windows dirent emulation.

This allows us to skip some stat calls, by extending commit 861c6e7c to
cover Windows systems.

Author: Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Magnus Hagander <magnus@hagander.net>
Reviewed-by: Thomas Munro <thomas.munro@gmail.com>
Discussion: https://postgr.es/m/CA%2BhUKG%2BFzxupGGN4GpUdbzZN%2Btn6FQPHo8w0Q%2BAPH5Wz8RG%2Bww%40mail.gmail.com

Files

PathChange+/−
src/include/port/win32_msvc/dirent.h modified +11 −0
src/port/dirent.c modified +10 −0

Discussion