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

pull/6603/head
Ahmet Gedemenli 2023-01-06 15:06:27 +03:00
parent bc3383170e
commit e37c4af1bb
1 changed files with 2 additions and 2 deletions

View File

@ -1231,7 +1231,7 @@ ReplicationSlotNameForNodeAndOwnerForOperation(LogicalRepType type, uint32_t nod
char *
SubscriptionName(LogicalRepType type, Oid ownerId)
{
return psprintf("%s%i_%lu", subscriptionPrefix[type],
return psprintf("%s%u_%lu", subscriptionPrefix[type],
ownerId, CurrentOperationId);
}
@ -1243,7 +1243,7 @@ SubscriptionName(LogicalRepType type, Oid ownerId)
char *
SubscriptionRoleName(LogicalRepType type, Oid ownerId)
{
return psprintf("%s%i_%lu", subscriptionRolePrefix[type], ownerId,
return psprintf("%s%u_%lu", subscriptionRolePrefix[type], ownerId,
CurrentOperationId);
}