Message improvements
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 7 Aug 2025 11:27:32 +0000 (13:27 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 7 Aug 2025 11:34:40 +0000 (13:34 +0200)
Backpatch of the relevant parts of commit 50fd428b2b9 for consistency.

src/backend/replication/logical/slotsync.c

index 7be1459172b944c238786971186c10f24773f4db..1a8cff9cf1f83f5cc623a411954522ff70642b74 100644 (file)
@@ -214,7 +214,7 @@ update_local_synced_slot(RemoteSlot *remote_slot, Oid remote_dbid,
        ereport(slot->data.persistency == RS_TEMPORARY ? LOG : DEBUG1,
                errmsg("could not synchronize replication slot \"%s\"",
                       remote_slot->name),
-               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.",
+               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.",
                          LSN_FORMAT_ARGS(remote_slot->restart_lsn),
                          remote_slot->catalog_xmin,
                          LSN_FORMAT_ARGS(slot->data.restart_lsn),
@@ -577,7 +577,7 @@ update_and_persist_local_synced_slot(RemoteSlot *remote_slot, Oid remote_dbid)
    {
        ereport(LOG,
                errmsg("could not synchronize replication slot \"%s\"", remote_slot->name),
-               errdetail("Synchronization could lead to data loss as standby could not build a consistent snapshot to decode WALs at LSN %X/%X.",
+               errdetail("Synchronization could lead to data loss, because the standby could not build a consistent snapshot to decode WALs at LSN %X/%X.",
                          LSN_FORMAT_ARGS(slot->data.restart_lsn)));
 
        return false;