We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a727c1 commit 62d02f3Copy full SHA for 62d02f3
src/backend/storage/file/fd.c
@@ -1451,7 +1451,7 @@ PathNameCreateTemporaryDir(const char *basedir, const char *directory)
1451
basedir)));
1452
1453
/* Try again. */
1454
- if (mkdir(directory, S_IRWXU) < 0)
+ if (mkdir(directory, S_IRWXU) < 0 && errno != EEXIST)
1455
ereport(ERROR,
1456
(errcode_for_file_access(),
1457
errmsg("cannot create temporary subdirectory \"%s\": %m",
0 commit comments