Use %u instead of %i for naming subscriptions & roles

(cherry picked from commit e37c4af1bb)
release-11.1-backport-ahmet
Ahmet Gedemenli 2023-01-06 15:06:27 +03:00
parent 8e0ce65d6d
commit 57dc187e53
1 changed files with 2 additions and 2 deletions

View File

@ -1411,7 +1411,7 @@ ReplicationSlotNameForNodeAndOwner(LogicalRepType type, uint32_t nodeId, Oid own
char *
SubscriptionName(LogicalRepType type, Oid ownerId)
{
return psprintf("%s%i", subscriptionPrefix[type], ownerId);
return psprintf("%s%u", subscriptionPrefix[type], ownerId);
}
@ -1422,7 +1422,7 @@ SubscriptionName(LogicalRepType type, Oid ownerId)
char *
SubscriptionRoleName(LogicalRepType type, Oid ownerId)
{
return psprintf("%s%i", subscriptionRolePrefix[type], ownerId);
return psprintf("%s%u", subscriptionRolePrefix[type], ownerId);
}