Use %u instead of %i for naming subscriptions & roles (#6603)

DESCRIPTION: Fix the modifier for subscription and role creation

fixes: #6598 
Reported by @ivyazmitinov
pull/6601/head
Ahmet Gedemenli 2023-01-06 16:38:32 +03:00 committed by GitHub
parent bc3383170e
commit 26b170e1a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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