[PATCH 2/2] Use "map.dat file" instead of "map file" in error messages

Kyotaro Horiguchi <horikyota.ntt@gmail.com>

From: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
To:
Date: 2025-04-07T06:03:46Z
Lists: pgsql-hackers
While pg_restore refers to "map.dat file" and "global.dat file"
explicitly, pg_dump uses the more generic term "map file". Update the
wording to consistently refer to the file as "map.dat file" in error
messages.
---
 src/bin/pg_dump/pg_dumpall.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/bin/pg_dump/pg_dumpall.c b/src/bin/pg_dump/pg_dumpall.c
index c112d5d22b8..71978d556aa 100644
--- a/src/bin/pg_dump/pg_dumpall.c
+++ b/src/bin/pg_dump/pg_dumpall.c
@@ -1660,10 +1660,10 @@ dumpDatabases(PGconn *conn, ArchiveFormat archDumpFormat)
 
 		snprintf(map_file_path, MAXPGPATH, "%s/map.dat", filename);
 
-		/* Create a map file (to store dboid and dbname) */
+		/* Create a map.dat file (to store dboid and dbname) */
 		map_file = fopen(map_file_path, PG_BINARY_W);
 		if (!map_file)
-			pg_fatal("could not open map file: \"%s\"", strerror(errno));
+			pg_fatal("could not open map.dat file: \"%s\"", strerror(errno));
 	}
 
 	for (i = 0; i < PQntuples(res); i++)
@@ -1697,7 +1697,7 @@ dumpDatabases(PGconn *conn, ArchiveFormat archDumpFormat)
 			else
 				snprintf(dbfilepath, MAXPGPATH, "\"%s\"/\"%s\"", db_subdir, oid);
 
-			/* Put one line entry for dboid and dbname in map file. */
+			/* Put one line entry for dboid and dbname in map.dat file. */
 			fprintf(map_file, "%s %s\n", oid, dbname);
 		}
 
@@ -1748,7 +1748,7 @@ dumpDatabases(PGconn *conn, ArchiveFormat archDumpFormat)
 		}
 	}
 
-	/* Close map file */
+	/* Close map.dat file */
 	if (archDumpFormat != archNull)
 		fclose(map_file);
 
-- 
2.43.5


----Next_Part(Mon_Apr__7_15_27_21_2025_268)----