File tree 1 file changed +12
-5
lines changed
1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -1263,11 +1263,18 @@ ReportSlotInvalidation(ReplicationSlotInvalidationCause cause,
1263
1263
switch (cause )
1264
1264
{
1265
1265
case RS_INVAL_WAL_REMOVED :
1266
- hint = true;
1267
- appendStringInfo (& err_detail , _ ("The slot's restart_lsn %X/%X exceeds the limit by %llu bytes." ),
1268
- LSN_FORMAT_ARGS (restart_lsn ),
1269
- (unsigned long long ) (oldestLSN - restart_lsn ));
1270
- break ;
1266
+ {
1267
+ unsigned long long ex = oldestLSN - restart_lsn ;
1268
+
1269
+ hint = true;
1270
+ appendStringInfo (& err_detail ,
1271
+ ngettext ("The slot's restart_lsn %X/%X exceeds the limit by %llu byte." ,
1272
+ "The slot's restart_lsn %X/%X exceeds the limit by %llu bytes." ,
1273
+ ex ),
1274
+ LSN_FORMAT_ARGS (restart_lsn ),
1275
+ ex );
1276
+ break ;
1277
+ }
1271
1278
case RS_INVAL_HORIZON :
1272
1279
appendStringInfo (& err_detail , _ ("The slot conflicted with xid horizon %u." ),
1273
1280
snapshotConflictHorizon );
You can’t perform that action at this time.
0 commit comments