postgresql/src/backend/storage/file
Thomas Munro 861c6e7c8e Skip unnecessary stat() calls in walkdir().
Some kernels can tell us the type of a "dirent", so we can avoid a call
to stat() or lstat() in many cases.  Define a new function
get_dirent_type() to contain that logic, for use by the backend and
frontend versions of walkdir(), and perhaps other callers in future.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
Discussion: https://postgr.es/m/CA%2BhUKG%2BFzxupGGN4GpUdbzZN%2Btn6FQPHo8w0Q%2BAPH5Wz8RG%2Bww%40mail.gmail.com
2020-09-07 18:28:06 +12:00
..
Makefile Split all OBJS style lines in makefiles into one-line-per-entry style. 2019-11-05 14:41:07 -08:00
buffile.c Extend the BufFile interface. 2020-08-26 07:36:43 +05:30
copydir.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
fd.c Skip unnecessary stat() calls in walkdir(). 2020-09-07 18:28:06 +12:00
reinit.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
sharedfileset.c Fix the SharedFileSetUnregister API. 2020-09-01 08:11:39 +05:30