@@ -1035,7 +1035,7 @@ get_dbname_oid_list_from_mfile(const char *dumpdirpath, SimpleOidStringList *dbn
10351035 */
10361036if (!file_exists_in_directory (dumpdirpath ,"map.dat" ))
10371037{
1038- pg_log_info ("databases restoring is skipped as map.dat file is not present in \"%s\"" ,dumpdirpath );
1038+ pg_log_info ("database restoring is skipped as\" map.dat\" is not present in \"%s\"" ,dumpdirpath );
10391039return 0 ;
10401040}
10411041
@@ -1045,7 +1045,7 @@ get_dbname_oid_list_from_mfile(const char *dumpdirpath, SimpleOidStringList *dbn
10451045pfile = fopen (map_file_path ,PG_BINARY_R );
10461046
10471047if (pfile == NULL )
1048- pg_fatal ("could not openmap.dat file: \"%s\"" ,map_file_path );
1048+ pg_fatal ("could not open \"%s\": %m " ,map_file_path );
10491049
10501050/* Append all the dbname/db_oid combinations to the list. */
10511051while ((fgets (line ,MAXPGPATH ,pfile ))!= NULL )
@@ -1064,11 +1064,13 @@ get_dbname_oid_list_from_mfile(const char *dumpdirpath, SimpleOidStringList *dbn
10641064/* Remove \n from dbname. */
10651065dbname [strlen (dbname )- 1 ]= '\0' ;
10661066
1067- pg_log_info ("found database \"%s\" (OID: %u) in map.dat file while restoring." ,dbname ,db_oid );
1067+ pg_log_info ("found database \"%s\" (OID: %u) in \"%s\"" ,
1068+ dbname ,db_oid ,map_file_path );
10681069
10691070/* Report error and exit if the file has any corrupted data. */
10701071if (!OidIsValid (db_oid )|| strlen (dbname )== 0 )
1071- pg_fatal ("invalid entry in map.dat file at line : %d" ,count + 1 );
1072+ pg_fatal ("invalid entry in \"%s\" at line : %d" ,map_file_path ,
1073+ count + 1 );
10721074
10731075simple_oid_string_list_append (dbname_oid_list ,db_oid ,dbname );
10741076count ++ ;
@@ -1116,7 +1118,7 @@ restore_all_databases(PGconn *conn, const char *dumpdirpath,
11161118if (dbname_oid_list .head == NULL )
11171119return process_global_sql_commands (conn ,dumpdirpath ,opts -> filename );
11181120
1119- pg_log_info ("foundtotal %d database names in map.dat file " ,num_total_db );
1121+ pg_log_info ("found %d database names in\" map.dat\" " ,num_total_db );
11201122
11211123if (!conn )
11221124{
@@ -1288,7 +1290,7 @@ process_global_sql_commands(PGconn *conn, const char *dumpdirpath, const char *o
12881290pfile = fopen (global_file_path ,PG_BINARY_R );
12891291
12901292if (pfile == NULL )
1291- pg_fatal ("could not openglobal.dat file: \"%s\"" ,global_file_path );
1293+ pg_fatal ("could not open \"%s\": %m " ,global_file_path );
12921294
12931295/*
12941296 * If outfile is given, then just copy all global.dat file data into
@@ -1335,7 +1337,7 @@ process_global_sql_commands(PGconn *conn, const char *dumpdirpath, const char *o
13351337
13361338/* Print a summary of ignored errors during global.dat. */
13371339if (n_errors )
1338- pg_log_warning ("errors ignoredon global.dat file restore: %d" ,n_errors );
1340+ pg_log_warning ("ignored%d errors in \"%s\"" ,n_errors , global_file_path );
13391341
13401342fclose (pfile );
13411343