Skip to content

Commit 0a5f6f7

Browse files
peterehopebo
authored andcommitted
Message improvements
Backpatch of the relevant parts of commit 50fd428b2b9 for consistency. (cherry picked from commit be26c77ef9b8613a2583853b9dd7097c5d373f48)
1 parent 87550fc commit 0a5f6f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/replication/logical/slotsync.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ update_local_synced_slot(RemoteSlot *remote_slot, Oid remote_dbid,
214214
ereport(slot->data.persistency == RS_TEMPORARY ? LOG : DEBUG1,
215215
errmsg("could not synchronize replication slot \"%s\"",
216216
remote_slot->name),
217-
errdetail("Synchronization could lead to data loss as the remote slot needs WAL at LSN %X/%X and catalog xmin %u, but the standby has LSN %X/%X and catalog xmin %u.",
217+
errdetail("Synchronization could lead to data loss, because the remote slot needs WAL at LSN %X/%X and catalog xmin %u, but the standby has LSN %X/%X and catalog xmin %u.",
218218
LSN_FORMAT_ARGS(remote_slot->restart_lsn),
219219
remote_slot->catalog_xmin,
220220
LSN_FORMAT_ARGS(slot->data.restart_lsn),
@@ -577,7 +577,7 @@ update_and_persist_local_synced_slot(RemoteSlot *remote_slot, Oid remote_dbid)
577577
{
578578
ereport(LOG,
579579
errmsg("could not synchronize replication slot \"%s\"", remote_slot->name),
580-
errdetail("Synchronization could lead to data loss as standby could not build a consistent snapshot to decode WALs at LSN %X/%X.",
580+
errdetail("Synchronization could lead to data loss, because the standby could not build a consistent snapshot to decode WALs at LSN %X/%X.",
581581
LSN_FORMAT_ARGS(slot->data.restart_lsn)));
582582

583583
return false;

0 commit comments

Comments
 (0)