projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b060dbe
)
pg_restore: Provide file name with one failure message
author
Alvaro Herrera
<
[email protected]
>
Fri, 8 May 2020 23:38:46 +0000
(19:38 -0400)
committer
Alvaro Herrera
<
[email protected]
>
Fri, 8 May 2020 23:38:46 +0000
(19:38 -0400)
Almost all error messages already include file name where relevant, but
this one had been overlooked. Repair.
Backpatch to 9.5.
Author: Euler Taveira <
[email protected]
>
Discussion: https://postgr.es/m/CAH503wA_VOrcKL_43p9atRejCDYmOZ8MzfK9S6TJrQqBqNeAXA@mail.gmail.com
Reviewed-by: Álvaro Herrera <
[email protected]
>
src/bin/pg_dump/pg_backup_directory.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pg_dump/pg_backup_directory.c
b/src/bin/pg_dump/pg_backup_directory.c
index c9cce5ed8a44f4f43e5da4502e7127fe5867d820..f178d6ac219500b9056318b96c2f3ae06a223954 100644
(file)
--- a/
src/bin/pg_dump/pg_backup_directory.c
+++ b/
src/bin/pg_dump/pg_backup_directory.c
@@
-397,7
+397,7
@@
_PrintFileData(ArchiveHandle *AH, char *filename)
free(buf);
if (cfclose(cfp) !=0)
- fatal("could not close data file
: %m"
);
+ fatal("could not close data file
\"%s\": %m", filename
);
}
/*