Thanks to visit codestin.com Credit goes to github.com
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 772a5f1 commit 1f35944Copy full SHA for 1f35944
contrib/pg_upgrade/exec.c
@@ -70,9 +70,9 @@ is_server_running(const char *datadir)
70
71
if ((fd = open(path, O_RDONLY, 0)) < 0)
72
{
73
- if (errno != ENOENT)
74
- /* issue a warning but continue so we can throw a clearer error later */
75
- pg_log(PG_WARNING, "could not open file \"%s\" for reading\n",
+ /* ENOTDIR means we will throw a more useful error later */
+ if (errno != ENOENT && errno != ENOTDIR)
+ pg_log(PG_FATAL, "could not open file \"%s\" for reading\n",
76
path);
77
78
return false;
0 commit comments