postgresql/src
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
..
backend Skip unnecessary stat() calls in walkdir(). 2020-09-07 18:28:06 +12:00
bin Refactor pg_get_line() to expose an alternative StringInfo-based API. 2020-09-06 14:13:19 -04:00
common Skip unnecessary stat() calls in walkdir(). 2020-09-07 18:28:06 +12:00
fe_utils Move connect.h from fe_utils to src/include/common. 2020-08-10 09:22:54 -07:00
include Skip unnecessary stat() calls in walkdir(). 2020-09-07 18:28:06 +12:00
interfaces Remove arbitrary line length limits in pg_regress (plain and ECPG). 2020-09-06 14:13:19 -04:00
makefiles Remove libpq.rc, use win32ver.rc for libpq 2020-01-15 15:06:12 +01:00
pl Remove unused parameter 2020-09-02 15:17:33 +02:00
port Remove arbitrary restrictions on password length. 2020-09-03 20:09:18 -04:00
template Fix compiler warning for ppoll() on Cygwin 2019-12-22 23:20:00 +01:00
test Add additional tests to test streaming of in-progress transactions. 2020-09-07 08:08:58 +05:30
timezone Ensure that distributed timezone abbreviation files are plain ASCII. 2020-07-17 11:03:55 -04:00
tools Skip unnecessary stat() calls in walkdir(). 2020-09-07 18:28:06 +12:00
tutorial doc: Change table alias names to lower case in tutorial chapter 2020-09-04 08:45:57 +02:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Fix partial-build problems introduced by having more generated headers. 2018-04-09 16:42:10 -04:00
Makefile.global.in Split Makefile symbol CFLAGS_VECTOR into two symbols. 2020-09-06 21:28:16 -04:00
Makefile.shlib Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
nls-global.mk NLS: Fix backend gettext triggers 2019-09-23 09:04:20 +02:00