Skip to content

Commit b55743a

Browse files
committed
In pg_upgrade, report errno string if file existence check returns an
error and errno != ENOENT.
1 parent 1f7cb5c commit b55743a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

contrib/pg_upgrade/relfilenode.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,9 @@ transfer_relfile(pageCnvCtx *pageConverter, FileNameMap *map,
205205
if (errno == ENOENT)
206206
return;
207207
else
208-
pg_log(PG_FATAL, "non-existant file error while copying relation \"%s.%s\" (\"%s\" to \"%s\")\n",
209-
map->nspname, map->relname, old_file, new_file);
208+
pg_log(PG_FATAL, "error while checking for file existance \"%s.%s\" (\"%s\" to \"%s\"): %s\n",
209+
map->nspname, map->relname, old_file, new_file,
210+
getErrorText(errno));
210211
}
211212
close(fd);
212213
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy