In pg_upgrade, report errno string if file existence check returns an
error and errno != ENOENT.
This commit is contained in:
parent
1f7cb5c309
commit
b55743a5df
@ -205,8 +205,9 @@ transfer_relfile(pageCnvCtx *pageConverter, FileNameMap *map,
|
|||||||
if (errno == ENOENT)
|
if (errno == ENOENT)
|
||||||
return;
|
return;
|
||||||
else
|
else
|
||||||
pg_log(PG_FATAL, "non-existant file error while copying relation \"%s.%s\" (\"%s\" to \"%s\")\n",
|
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);
|
map->nspname, map->relname, old_file, new_file,
|
||||||
|
getErrorText(errno));
|
||||||
}
|
}
|
||||||
close(fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user