File tree 1 file changed +14
-0
lines changed
src/backend/replication/logical
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -321,6 +321,9 @@ reserve_wal_for_local_slot(XLogRecPtr restart_lsn)
321
321
oldest_segno = XLogGetOldestSegno (cur_timeline );
322
322
}
323
323
324
+ elog (DEBUG1 , "segno: %ld of purposed restart_lsn for the synced slot, oldest_segno: %ld available" ,
325
+ segno , oldest_segno );
326
+
324
327
/*
325
328
* If all required WAL is still there, great, otherwise retry. The
326
329
* slot should prevent further removal of WAL, unless there's a
@@ -361,7 +364,18 @@ update_and_persist_local_synced_slot(RemoteSlot *remote_slot, Oid remote_dbid)
361
364
* current location when recreating the slot in the next cycle. It may
362
365
* take more time to create such a slot. Therefore, we keep this slot
363
366
* and attempt the synchronization in the next cycle.
367
+ *
368
+ * XXX should this be changed to elog(DEBUG1) perhaps?
364
369
*/
370
+ ereport (LOG ,
371
+ errmsg ("could not sync slot information as remote slot precedes local slot:"
372
+ " remote slot \"%s\": LSN (%X/%X), catalog xmin (%u) local slot: LSN (%X/%X), catalog xmin (%u)" ,
373
+ remote_slot -> name ,
374
+ LSN_FORMAT_ARGS (remote_slot -> restart_lsn ),
375
+ remote_slot -> catalog_xmin ,
376
+ LSN_FORMAT_ARGS (slot -> data .restart_lsn ),
377
+ slot -> data .catalog_xmin ));
378
+
365
379
return ;
366
380
}
367
381
You can’t perform that action at this time.
0 commit comments