Skip to content
Snippets Groups Projects
Commit b55743a5 authored by Bruce Momjian's avatar Bruce Momjian
Browse files

In pg_upgrade, report errno string if file existence check returns an

error and errno != ENOENT.
parent 1f7cb5c3
No related branches found
No related tags found
No related merge requests found
......@@ -205,8 +205,9 @@ transfer_relfile(pageCnvCtx *pageConverter, FileNameMap *map,
if (errno == ENOENT)
return;
else
pg_log(PG_FATAL, "non-existant file error while copying relation \"%s.%s\" (\"%s\" to \"%s\")\n",
map->nspname, map->relname, old_file, new_file);
pg_log(PG_FATAL, "error while checking for file existance \"%s.%s\" (\"%s\" to \"%s\"): %s\n",
map->nspname, map->relname, old_file, new_file,
getErrorText(errno));
}
close(fd);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment