@@ -300,7 +300,7 @@ XLogDumpXLogRead(const char *directory, TimeLineID timeline_id,
300300
301301 XLogFileName (fname , timeline_id , sendSegNo );
302302
303- fatal_error ("could not seek in log segment %s to offset %u: %s" ,
303+ fatal_error ("could not seek in log file %s to offset %u: %s" ,
304304 fname , startoff , strerror (err ));
305305 }
306306 sendOff = startoff ;
@@ -320,7 +320,7 @@ XLogDumpXLogRead(const char *directory, TimeLineID timeline_id,
320320
321321 XLogFileName (fname , timeline_id , sendSegNo );
322322
323- fatal_error ("could not read from log segment %s, offset %d , length %d: %s" ,
323+ fatal_error ("could not read from log file %s, offset %u , length %d: %s" ,
324324 fname , sendOff , segbytes , strerror (err ));
325325 }
326326
@@ -710,14 +710,14 @@ usage(void)
710710 printf (_ (" -n, --limit=N number of records to display\n" ));
711711 printf (_ (" -p, --path=PATH directory in which to find log segment files or a\n"
712712 " directory with a ./pg_wal that contains such files\n"
713- " (default: current directory, ./pg_wal, PGDATA/pg_wal)\n" ));
714- printf (_ (" -r, --rmgr=RMGR only show records generated by resource manager RMGR\n"
713+ " (default: current directory, ./pg_wal, $ PGDATA/pg_wal)\n" ));
714+ printf (_ (" -r, --rmgr=RMGR only show records generated by resource manager RMGR; \n"
715715 " use --rmgr=list to list valid resource manager names\n" ));
716716 printf (_ (" -s, --start=RECPTR start reading at WAL location RECPTR\n" ));
717717 printf (_ (" -t, --timeline=TLI timeline from which to read log records\n"
718718 " (default: 1 or the value used in STARTSEG)\n" ));
719719 printf (_ (" -V, --version output version information, then exit\n" ));
720- printf (_ (" -x, --xid=XID only show records with TransactionId XID\n" ));
720+ printf (_ (" -x, --xid=XID only show records with transaction ID XID\n" ));
721721 printf (_ (" -z, --stats[=record] show statistics instead of records\n"
722722 " (optionally, show per-record statistics)\n" ));
723723 printf (_ (" -?, --help show this help, then exit\n" ));
@@ -870,7 +870,7 @@ main(int argc, char **argv)
870870 case 'x' :
871871 if (sscanf (optarg , "%u" , & config .filter_by_xid ) != 1 )
872872 {
873- fprintf (stderr , _ ("%s: could not parse \"%s\" as a valid xid \n" ),
873+ fprintf (stderr , _ ("%s: could not parse \"%s\" as a transaction ID \n" ),
874874 progname , optarg );
875875 goto bad_argument ;
876876 }
@@ -910,7 +910,7 @@ main(int argc, char **argv)
910910 if (!verify_directory (private .inpath ))
911911 {
912912 fprintf (stderr ,
913- _ ("%s: path \"%s\" cannot be opened: %s\n" ),
913+ _ ("%s: path \"%s\" could not be opened: %s\n" ),
914914 progname , private .inpath , strerror (errno ));
915915 goto bad_argument ;
916916 }
@@ -931,7 +931,7 @@ main(int argc, char **argv)
931931 private .inpath = directory ;
932932
933933 if (!verify_directory (private .inpath ))
934- fatal_error ("cannot open directory \"%s\": %s" ,
934+ fatal_error ("could not open directory \"%s\": %s" ,
935935 private .inpath , strerror (errno ));
936936 }
937937
@@ -1029,7 +1029,9 @@ main(int argc, char **argv)
10291029 * a segment (e.g. we were used in file mode).
10301030 */
10311031 if (first_record != private .startptr && (private .startptr % XLogSegSize ) != 0 )
1032- printf (_ ("first record is after %X/%X, at %X/%X, skipping over %u bytes\n" ),
1032+ printf (ngettext ("first record is after %X/%X, at %X/%X, skipping over %u byte\n" ,
1033+ "first record is after %X/%X, at %X/%X, skipping over %u bytes\n" ,
1034+ (first_record - private .startptr )),
10331035 (uint32 ) (private .startptr >> 32 ), (uint32 ) private .startptr ,
10341036 (uint32 ) (first_record >> 32 ), (uint32 ) first_record ,
10351037 (uint32 ) (first_record - private .startptr ));
0 commit comments