@@ -352,7 +352,7 @@ replorigin_drop_guts(Relation rel, RepOriginId roident, bool nowait)
352352if (nowait )
353353ereport (ERROR ,
354354(errcode (ERRCODE_OBJECT_IN_USE ),
355- errmsg ("could not drop replication origin with ID %u , in use by PID %d" ,
355+ errmsg ("could not drop replication origin with ID %d , in use by PID %d" ,
356356state -> roident ,
357357state -> acquired_by )));
358358
@@ -396,7 +396,7 @@ replorigin_drop_guts(Relation rel, RepOriginId roident, bool nowait)
396396 */
397397tuple = SearchSysCache1 (REPLORIGIDENT ,ObjectIdGetDatum (roident ));
398398if (!HeapTupleIsValid (tuple ))
399- elog (ERROR ,"cache lookup failed for replication origin with ID %u " ,
399+ elog (ERROR ,"cache lookup failed for replication origin with ID %d " ,
400400roident );
401401
402402CatalogTupleDelete (rel ,& tuple -> t_self );
@@ -473,7 +473,7 @@ replorigin_by_oid(RepOriginId roident, bool missing_ok, char **roname)
473473if (!missing_ok )
474474ereport (ERROR ,
475475(errcode (ERRCODE_UNDEFINED_OBJECT ),
476- errmsg ("replication origin with ID %u does not exist" ,
476+ errmsg ("replication origin with ID %d does not exist" ,
477477roident )));
478478
479479return false;
@@ -787,7 +787,7 @@ StartupReplicationOrigin(void)
787787last_state ++ ;
788788
789789ereport (LOG ,
790- (errmsg ("recovered replication state of node %u to %X/%X" ,
790+ (errmsg ("recovered replication state of node %d to %X/%X" ,
791791disk_state .roident ,
792792LSN_FORMAT_ARGS (disk_state .remote_lsn ))));
793793}
@@ -925,7 +925,7 @@ replorigin_advance(RepOriginId node,
925925{
926926ereport (ERROR ,
927927(errcode (ERRCODE_OBJECT_IN_USE ),
928- errmsg ("replication origin with ID %u is already active for PID %d" ,
928+ errmsg ("replication origin with ID %d is already active for PID %d" ,
929929replication_state -> roident ,
930930replication_state -> acquired_by )));
931931}
@@ -936,7 +936,7 @@ replorigin_advance(RepOriginId node,
936936if (replication_state == NULL && free_state == NULL )
937937ereport (ERROR ,
938938(errcode (ERRCODE_CONFIGURATION_LIMIT_EXCEEDED ),
939- errmsg ("could not find free replication state slot for replication origin with ID %u " ,
939+ errmsg ("could not find free replication state slot for replication origin with ID %d " ,
940940node ),
941941errhint ("Increase max_replication_slots and try again." )));
942942
@@ -1114,7 +1114,7 @@ replorigin_session_setup(RepOriginId node)
11141114{
11151115ereport (ERROR ,
11161116(errcode (ERRCODE_OBJECT_IN_USE ),
1117- errmsg ("replication origin with ID %u is already active for PID %d" ,
1117+ errmsg ("replication origin with ID %d is already active for PID %d" ,
11181118curstate -> roident ,curstate -> acquired_by )));
11191119}
11201120
@@ -1126,7 +1126,7 @@ replorigin_session_setup(RepOriginId node)
11261126if (session_replication_state == NULL && free_slot == -1 )
11271127ereport (ERROR ,
11281128(errcode (ERRCODE_CONFIGURATION_LIMIT_EXCEEDED ),
1129- errmsg ("could not find free replication state slot for replication origin with ID %u " ,
1129+ errmsg ("could not find free replication state slot for replication origin with ID %d " ,
11301130node ),
11311131errhint ("Increase max_replication_slots and try again." )));
11321132else if (session_replication_state == NULL )