@@ -300,7 +300,7 @@ XLogDumpXLogRead(const char *directory, TimeLineID timeline_id,
300
300
301
301
XLogFileName (fname , timeline_id , sendSegNo );
302
302
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" ,
304
304
fname , startoff , strerror (err ));
305
305
}
306
306
sendOff = startoff ;
@@ -320,7 +320,7 @@ XLogDumpXLogRead(const char *directory, TimeLineID timeline_id,
320
320
321
321
XLogFileName (fname , timeline_id , sendSegNo );
322
322
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" ,
324
324
fname , sendOff , segbytes , strerror (err ));
325
325
}
326
326
@@ -710,14 +710,14 @@ usage(void)
710
710
printf (_ (" -n, --limit=N number of records to display\n" ));
711
711
printf (_ (" -p, --path=PATH directory in which to find log segment files or a\n"
712
712
" 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"
715
715
" use --rmgr=list to list valid resource manager names\n" ));
716
716
printf (_ (" -s, --start=RECPTR start reading at WAL location RECPTR\n" ));
717
717
printf (_ (" -t, --timeline=TLI timeline from which to read log records\n"
718
718
" (default: 1 or the value used in STARTSEG)\n" ));
719
719
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" ));
721
721
printf (_ (" -z, --stats[=record] show statistics instead of records\n"
722
722
" (optionally, show per-record statistics)\n" ));
723
723
printf (_ (" -?, --help show this help, then exit\n" ));
@@ -870,7 +870,7 @@ main(int argc, char **argv)
870
870
case 'x' :
871
871
if (sscanf (optarg , "%u" , & config .filter_by_xid ) != 1 )
872
872
{
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" ),
874
874
progname , optarg );
875
875
goto bad_argument ;
876
876
}
@@ -910,7 +910,7 @@ main(int argc, char **argv)
910
910
if (!verify_directory (private .inpath ))
911
911
{
912
912
fprintf (stderr ,
913
- _ ("%s: path \"%s\" cannot be opened: %s\n" ),
913
+ _ ("%s: path \"%s\" could not be opened: %s\n" ),
914
914
progname , private .inpath , strerror (errno ));
915
915
goto bad_argument ;
916
916
}
@@ -931,7 +931,7 @@ main(int argc, char **argv)
931
931
private .inpath = directory ;
932
932
933
933
if (!verify_directory (private .inpath ))
934
- fatal_error ("cannot open directory \"%s\": %s" ,
934
+ fatal_error ("could not open directory \"%s\": %s" ,
935
935
private .inpath , strerror (errno ));
936
936
}
937
937
@@ -1029,7 +1029,9 @@ main(int argc, char **argv)
1029
1029
* a segment (e.g. we were used in file mode).
1030
1030
*/
1031
1031
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 )),
1033
1035
(uint32 ) (private .startptr >> 32 ), (uint32 ) private .startptr ,
1034
1036
(uint32 ) (first_record >> 32 ), (uint32 ) first_record ,
1035
1037
(uint32 ) (first_record - private .startptr ));
0 commit comments