@@ -212,9 +212,9 @@ update_local_synced_slot(RemoteSlot *remote_slot, Oid remote_dbid,
212212 * impact the users, so we used DEBUG1 level to log the message.
213213 */
214214 ereport (slot -> data .persistency == RS_TEMPORARY ? LOG : DEBUG1 ,
215- errmsg ("could not sync slot \"%s\" as remote slot precedes local slot" ,
215+ errmsg ("could not synchronize replication slot \"%s\" because remote slot precedes local slot" ,
216216 remote_slot -> name ),
217- errdetail ("Remote slot has LSN %X/%X and catalog xmin %u, but local slot has LSN %X/%X and catalog xmin %u." ,
217+ errdetail ("The remote slot has LSN %X/%X and catalog xmin %u, but the local slot 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 ),
@@ -456,7 +456,7 @@ drop_local_obsolete_slots(List *remote_slot_list)
456456 0 , AccessShareLock );
457457
458458 ereport (LOG ,
459- errmsg ("dropped replication slot \"%s\" of dbid %u" ,
459+ errmsg ("dropped replication slot \"%s\" of database with OID %u" ,
460460 NameStr (local_slot -> data .name ),
461461 local_slot -> data .database ));
462462 }
@@ -576,8 +576,8 @@ update_and_persist_local_synced_slot(RemoteSlot *remote_slot, Oid remote_dbid)
576576 if (!found_consistent_snapshot )
577577 {
578578 ereport (LOG ,
579- errmsg ("could not sync slot \"%s\"" , remote_slot -> name ),
580- errdetail ("Logical decoding cannot find consistent point from local slot's LSN %X/%X." ,
579+ errmsg ("could not synchronize replication slot \"%s\"" , remote_slot -> name ),
580+ errdetail ("Logical decoding could not find consistent point from local slot's LSN %X/%X." ,
581581 LSN_FORMAT_ARGS (slot -> data .restart_lsn )));
582582
583583 return false;
@@ -586,7 +586,7 @@ update_and_persist_local_synced_slot(RemoteSlot *remote_slot, Oid remote_dbid)
586586 ReplicationSlotPersist ();
587587
588588 ereport (LOG ,
589- errmsg ("newly created slot \"%s\" is sync-ready now" ,
589+ errmsg ("newly created replication slot \"%s\" is sync-ready now" ,
590590 remote_slot -> name ));
591591
592592 return true;
@@ -625,7 +625,7 @@ synchronize_one_slot(RemoteSlot *remote_slot, Oid remote_dbid)
625625 */
626626 ereport (AmLogicalSlotSyncWorkerProcess () ? LOG : ERROR ,
627627 errcode (ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE ),
628- errmsg ("skipping slot synchronization as the received slot sync"
628+ errmsg ("skipping slot synchronization because the received slot sync"
629629 " LSN %X/%X for slot \"%s\" is ahead of the standby position %X/%X" ,
630630 LSN_FORMAT_ARGS (remote_slot -> confirmed_lsn ),
631631 remote_slot -> name ,
@@ -992,10 +992,9 @@ validate_remote_info(WalReceiverConn *wrconn)
992992 if (!primary_slot_valid )
993993 ereport (ERROR ,
994994 errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
995- errmsg ("slot synchronization requires valid primary_slot_name" ),
996995 /* translator: second %s is a GUC variable name */
997- errdetail ( "The replication slot \"%s\" specified by %s does not exist on the primary server. " ,
998- PrimarySlotName , "primary_slot_name" ));
996+ errmsg ( " replication slot \"%s\" specified by \"%s\" does not exist on primary server" ,
997+ PrimarySlotName , "primary_slot_name" ));
999998
1000999 ExecClearTuple (tupslot );
10011000 walrcv_clear_result (res );
@@ -1022,9 +1021,13 @@ CheckAndGetDbnameFromConninfo(void)
10221021 if (dbname == NULL )
10231022 ereport (ERROR ,
10241023 errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
1025- /* translator: dbname is a specific option; %s is a GUC variable name */
1026- errmsg ("slot synchronization requires dbname to be specified in %s" ,
1027- "primary_conninfo" ));
1024+
1025+ /*
1026+ * translator: first %s is a connection option; second %s is a GUC
1027+ * variable name
1028+ */
1029+ errmsg ("replication slot synchronization requires \"%s\" to be specified in \"%s\"" ,
1030+ "dbname" , "primary_conninfo" ));
10281031 return dbname ;
10291032}
10301033
@@ -1044,7 +1047,7 @@ ValidateSlotSyncParams(int elevel)
10441047 if (wal_level < WAL_LEVEL_LOGICAL )
10451048 ereport (ERROR ,
10461049 errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
1047- errmsg ("slot synchronization requires \"wal_level\" >= \"logical\"" ));
1050+ errmsg ("replication slot synchronization requires \"wal_level\" >= \"logical\"" ));
10481051
10491052 /*
10501053 * A physical replication slot(primary_slot_name) is required on the
@@ -1057,7 +1060,7 @@ ValidateSlotSyncParams(int elevel)
10571060 ereport (elevel ,
10581061 errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
10591062 /* translator: %s is a GUC variable name */
1060- errmsg ("slot synchronization requires %s to be defined " , "primary_slot_name" ));
1063+ errmsg ("replication slot synchronization requires \"%s\" to be set " , "primary_slot_name" ));
10611064 return false;
10621065 }
10631066
@@ -1071,7 +1074,7 @@ ValidateSlotSyncParams(int elevel)
10711074 ereport (elevel ,
10721075 errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
10731076 /* translator: %s is a GUC variable name */
1074- errmsg ("slot synchronization requires %s to be enabled" ,
1077+ errmsg ("replication slot synchronization requires \"%s\" to be enabled" ,
10751078 "hot_standby_feedback" ));
10761079 return false;
10771080 }
@@ -1085,7 +1088,7 @@ ValidateSlotSyncParams(int elevel)
10851088 ereport (elevel ,
10861089 errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
10871090 /* translator: %s is a GUC variable name */
1088- errmsg ("slot synchronization requires %s to be defined " ,
1091+ errmsg ("replication slot synchronization requires \"%s\" to be set " ,
10891092 "primary_conninfo" ));
10901093 return false;
10911094 }
@@ -1123,7 +1126,7 @@ slotsync_reread_config(void)
11231126 {
11241127 ereport (LOG ,
11251128 /* translator: %s is a GUC variable name */
1126- errmsg ("slot sync worker will shutdown because %s is disabled" , "sync_replication_slots" ));
1129+ errmsg ("replication slot synchronization worker will shut down because \"%s\" is disabled" , "sync_replication_slots" ));
11271130 proc_exit (0 );
11281131 }
11291132
@@ -1132,7 +1135,7 @@ slotsync_reread_config(void)
11321135 (old_hot_standby_feedback != hot_standby_feedback ))
11331136 {
11341137 ereport (LOG ,
1135- errmsg ("slot sync worker will restart because of a parameter change" ));
1138+ errmsg ("replication slot synchronization worker will restart because of a parameter change" ));
11361139
11371140 /*
11381141 * Reset the last-start time for this worker so that the postmaster
@@ -1156,7 +1159,7 @@ ProcessSlotSyncInterrupts(WalReceiverConn *wrconn)
11561159 if (ShutdownRequestPending )
11571160 {
11581161 ereport (LOG ,
1159- errmsg ("slot sync worker is shutting down on receiving SIGINT" ));
1162+ errmsg ("replication slot synchronization worker is shutting down on receiving SIGINT" ));
11601163
11611164 proc_exit (0 );
11621165 }
0 commit comments