Skip to content

Commit 9e0e555

Browse files
committed
Fix typos in comment and log message.
1 parent 6275f5d commit 9e0e555

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/backend/catalog/aclchk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5104,7 +5104,7 @@ pg_publication_ownercheck(Oid pub_oid, Oid roleid)
51045104
}
51055105

51065106
/*
5107-
* Ownership check for an subscription (specified by OID).
5107+
* Ownership check for a subscription (specified by OID).
51085108
*/
51095109
bool
51105110
pg_subscription_ownercheck(Oid sub_oid, Oid roleid)

src/backend/commands/subscriptioncmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ AlterSubscriptionOwner_internal(Relation rel, HeapTuple tup, Oid newOwnerId)
912912
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
913913
errmsg("permission denied to change owner of subscription \"%s\"",
914914
NameStr(form->subname)),
915-
errhint("The owner of an subscription must be a superuser.")));
915+
errhint("The owner of a subscription must be a superuser.")));
916916

917917
form->subowner = newOwnerId;
918918
CatalogTupleUpdate(rel, &tup->t_self, tup);

src/test/regress/expected/subscription.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ ALTER SUBSCRIPTION testsub_foo RENAME TO testsub;
105105
-- fail - new owner must be superuser
106106
ALTER SUBSCRIPTION testsub OWNER TO regress_subscription_user2;
107107
ERROR: permission denied to change owner of subscription "testsub"
108-
HINT: The owner of an subscription must be a superuser.
108+
HINT: The owner of a subscription must be a superuser.
109109
ALTER ROLE regress_subscription_user2 SUPERUSER;
110110
-- now it works
111111
ALTER SUBSCRIPTION testsub OWNER TO regress_subscription_user2;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy