@@ -598,8 +598,10 @@ SnapBuildExportSnapshot(SnapBuild *builder)
598598 snapname = ExportSnapshot (snap );
599599
600600 ereport (LOG ,
601- (errmsg ("exported logical decoding snapshot: \"%s\" with %u xids" ,
602- snapname , snap -> xcnt )));
601+ (errmsg_plural ("exported logical decoding snapshot: \"%s\" with %u transaction ID" ,
602+ "exported logical decoding snapshot: \"%s\" with %u transaction IDs" ,
603+ snap -> xcnt ,
604+ snapname , snap -> xcnt )));
603605 return snapname ;
604606}
605607
@@ -901,7 +903,7 @@ SnapBuildEndTxn(SnapBuild *builder, XLogRecPtr lsn, TransactionId xid)
901903 ereport (LOG ,
902904 (errmsg ("logical decoding found consistent point at %X/%X" ,
903905 (uint32 ) (lsn >> 32 ), (uint32 ) lsn ),
904- errdetail ("xid %u finished, no running transactions anymore " ,
906+ errdetail ("Transaction ID %u finished; no more running transactions. " ,
905907 xid )));
906908 builder -> state = SNAPBUILD_CONSISTENT ;
907909 }
@@ -1228,9 +1230,9 @@ SnapBuildFindSnapshot(SnapBuild *builder, XLogRecPtr lsn, xl_running_xacts *runn
12281230 builder -> initial_xmin_horizon ))
12291231 {
12301232 ereport (DEBUG1 ,
1231- (errmsg ("skipping snapshot at %X/%X while building logical decoding snapshot, xmin horizon too low" ,
1233+ (errmsg_internal ("skipping snapshot at %X/%X while building logical decoding snapshot, xmin horizon too low" ,
12321234 (uint32 ) (lsn >> 32 ), (uint32 ) lsn ),
1233- errdetail ("initial xmin horizon of %u vs the snapshot's %u" ,
1235+ errdetail_internal ("initial xmin horizon of %u vs the snapshot's %u" ,
12341236 builder -> initial_xmin_horizon , running -> oldestRunningXid )));
12351237 return true;
12361238 }
@@ -1324,7 +1326,10 @@ SnapBuildFindSnapshot(SnapBuild *builder, XLogRecPtr lsn, xl_running_xacts *runn
13241326 ereport (LOG ,
13251327 (errmsg ("logical decoding found initial starting point at %X/%X" ,
13261328 (uint32 ) (lsn >> 32 ), (uint32 ) lsn ),
1327- errdetail ("%u xacts need to finish" , (uint32 ) builder -> running .xcnt )));
1329+ errdetail_plural ("%u transaction needs to finish." ,
1330+ "%u transactions need to finish." ,
1331+ builder -> running .xcnt ,
1332+ (uint32 ) builder -> running .xcnt )));
13281333
13291334 /*
13301335 * Iterate through all xids, wait for them to finish.
0 commit comments