pgsql: Teach pg_ls_dir_files() to ignore ENOENT failures from stat().

2020-03-31 Thread Tom Lane
Teach pg_ls_dir_files() to ignore ENOENT failures from stat(). Buildfarm experience shows that this function can fail with ENOENT if some other process unlinks a file between when we read the directory entry and when we try to stat() it. The problem is old but we had not noticed it until 085b6b66

pgsql: Teach pg_ls_dir_files() to ignore ENOENT failures from stat().

2020-03-31 Thread Tom Lane
Teach pg_ls_dir_files() to ignore ENOENT failures from stat(). Buildfarm experience shows that this function can fail with ENOENT if some other process unlinks a file between when we read the directory entry and when we try to stat() it. The problem is old but we had not noticed it until 085b6b66

pgsql: Teach pg_ls_dir_files() to ignore ENOENT failures from stat().

2020-03-31 Thread Tom Lane
Teach pg_ls_dir_files() to ignore ENOENT failures from stat(). Buildfarm experience shows that this function can fail with ENOENT if some other process unlinks a file between when we read the directory entry and when we try to stat() it. The problem is old but we had not noticed it until 085b6b66

pgsql: Teach pg_ls_dir_files() to ignore ENOENT failures from stat().

2020-03-31 Thread Tom Lane
Teach pg_ls_dir_files() to ignore ENOENT failures from stat(). Buildfarm experience shows that this function can fail with ENOENT if some other process unlinks a file between when we read the directory entry and when we try to stat() it. The problem is old but we had not noticed it until 085b6b66