postgresql/src/bin
Tom Lane 666e9a90f0 Remove useless lstat() call in pg_rewind.
This is duplicative of an lstat that was just done by the calling
function (traverse_datadir), besides which we weren't really doing
anything with the results.  There's not much point in checking to
see if someone removed the file since the previous lstat, since the
FILE_ACTION_REMOVE code would have to deal with missing-file cases
anyway.  Moreover, the "exists = false" assignment was a dead store;
nothing was done with that value later.

A syscall saved is a syscall earned, so back-patch to 9.5
where this code was introduced.

Discussion: https://postgr.es/m/1221796.1599329320@sss.pgh.pa.us
2020-09-06 11:50:40 -04:00
..
initdb Improve some ancient, crufty code in bootstrap + initdb. 2020-09-05 16:20:04 -04:00
pg_archivecleanup Translation updates 2020-05-18 12:49:30 +02:00
pg_basebackup Remove arbitrary restrictions on password length. 2020-09-03 20:09:18 -04:00
pg_checksums Avoid non-constant format string argument to fprintf(). 2020-08-18 13:13:09 +03:00
pg_config Translation updates 2020-05-18 12:49:30 +02:00
pg_controldata Rename VariableCacheData.nextFullXid to nextXid. 2020-08-11 12:07:14 -07:00
pg_ctl Remove non-fast promotion. 2020-07-29 21:24:26 +09:00
pg_dump Yet more elimination of dead stores and useless initializations. 2020-09-05 13:17:32 -04:00
pg_resetwal Rename VariableCacheData.nextFullXid to nextXid. 2020-08-11 12:07:14 -07:00
pg_rewind Remove useless lstat() call in pg_rewind. 2020-09-06 11:50:40 -04:00
pg_test_fsync Switch pg_test_fsync to use binary mode on Windows 2020-07-16 15:52:37 +09:00
pg_test_timing Translation updates 2020-05-18 12:49:30 +02:00
pg_upgrade Move connect.h from fe_utils to src/include/common. 2020-08-10 09:22:54 -07:00
pg_verifybackup tap tests: replace 'master' with 'primary'. 2020-07-08 12:39:56 -07:00
pg_waldump Correct several behavior descriptions in comments. 2020-08-15 20:21:52 -07:00
pgbench Remove arbitrary restrictions on password length. 2020-09-03 20:09:18 -04:00
pgevent Remove libpq.rc, use win32ver.rc for libpq 2020-01-15 15:06:12 +01:00
psql Remove arbitrary restrictions on password length. 2020-09-03 20:09:18 -04:00
scripts Remove still more useless assignments. 2020-09-04 20:33:36 -04:00
Makefile Rename pg_validatebackup to pg_verifybackup. 2020-04-12 11:26:05 -04:00