@@ -364,7 +364,7 @@ replorigin_drop_guts(Relation rel, RepOriginId roident, bool nowait)
364364if (nowait )
365365ereport (ERROR ,
366366(errcode (ERRCODE_OBJECT_IN_USE ),
367- errmsg ("could not drop replication origin with ID %u , in use by PID %d" ,
367+ errmsg ("could not drop replication origin with ID %d , in use by PID %d" ,
368368state -> roident ,
369369state -> acquired_by )));
370370
@@ -408,7 +408,7 @@ replorigin_drop_guts(Relation rel, RepOriginId roident, bool nowait)
408408 */
409409tuple = SearchSysCache1 (REPLORIGIDENT ,ObjectIdGetDatum (roident ));
410410if (!HeapTupleIsValid (tuple ))
411- elog (ERROR ,"cache lookup failed for replication origin with ID %u " ,
411+ elog (ERROR ,"cache lookup failed for replication origin with ID %d " ,
412412roident );
413413
414414CatalogTupleDelete (rel ,& tuple -> t_self );
@@ -485,7 +485,7 @@ replorigin_by_oid(RepOriginId roident, bool missing_ok, char **roname)
485485if (!missing_ok )
486486ereport (ERROR ,
487487(errcode (ERRCODE_UNDEFINED_OBJECT ),
488- errmsg ("replication origin with ID %u does not exist" ,
488+ errmsg ("replication origin with ID %d does not exist" ,
489489roident )));
490490
491491return false;
@@ -799,7 +799,7 @@ StartupReplicationOrigin(void)
799799last_state ++ ;
800800
801801ereport (LOG ,
802- (errmsg ("recovered replication state of node %u to %X/%X" ,
802+ (errmsg ("recovered replication state of node %d to %X/%X" ,
803803disk_state .roident ,
804804LSN_FORMAT_ARGS (disk_state .remote_lsn ))));
805805}
@@ -937,7 +937,7 @@ replorigin_advance(RepOriginId node,
937937{
938938ereport (ERROR ,
939939(errcode (ERRCODE_OBJECT_IN_USE ),
940- errmsg ("replication origin with ID %u is already active for PID %d" ,
940+ errmsg ("replication origin with ID %d is already active for PID %d" ,
941941replication_state -> roident ,
942942replication_state -> acquired_by )));
943943}
@@ -948,7 +948,7 @@ replorigin_advance(RepOriginId node,
948948if (replication_state == NULL && free_state == NULL )
949949ereport (ERROR ,
950950(errcode (ERRCODE_CONFIGURATION_LIMIT_EXCEEDED ),
951- errmsg ("could not find free replication state slot for replication origin with ID %u " ,
951+ errmsg ("could not find free replication state slot for replication origin with ID %d " ,
952952node ),
953953errhint ("Increase max_replication_slots and try again." )));
954954
@@ -1126,7 +1126,7 @@ replorigin_session_setup(RepOriginId node)
11261126{
11271127ereport (ERROR ,
11281128(errcode (ERRCODE_OBJECT_IN_USE ),
1129- errmsg ("replication origin with ID %u is already active for PID %d" ,
1129+ errmsg ("replication origin with ID %d is already active for PID %d" ,
11301130curstate -> roident ,curstate -> acquired_by )));
11311131}
11321132
@@ -1138,7 +1138,7 @@ replorigin_session_setup(RepOriginId node)
11381138if (session_replication_state == NULL && free_slot == -1 )
11391139ereport (ERROR ,
11401140(errcode (ERRCODE_CONFIGURATION_LIMIT_EXCEEDED ),
1141- errmsg ("could not find free replication state slot for replication origin with ID %u " ,
1141+ errmsg ("could not find free replication state slot for replication origin with ID %d " ,
11421142node ),
11431143errhint ("Increase max_replication_slots and try again." )));
11441144else if (session_replication_state == NULL )