diff options
author | Fujii Masao | 2017-04-17 18:19:39 +0000 |
---|---|---|
committer | Fujii Masao | 2017-04-17 18:19:39 +0000 |
commit | 9e0e5550c5f273dc4133687b1a682eb39933f47e (patch) | |
tree | 42687613db3615ba5e0e46068180117464a1829e | |
parent | 6275f5d28a1577563f53f2171689d4f890a46881 (diff) |
Fix typos in comment and log message.
-rw-r--r-- | src/backend/catalog/aclchk.c | 2 | ||||
-rw-r--r-- | src/backend/commands/subscriptioncmds.c | 2 | ||||
-rw-r--r-- | src/test/regress/expected/subscription.out | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/catalog/aclchk.c b/src/backend/catalog/aclchk.c index 2d535c2aad..70e3e6229c 100644 --- a/src/backend/catalog/aclchk.c +++ b/src/backend/catalog/aclchk.c @@ -5104,7 +5104,7 @@ pg_publication_ownercheck(Oid pub_oid, Oid roleid) } /* - * Ownership check for an subscription (specified by OID). + * Ownership check for a subscription (specified by OID). */ bool pg_subscription_ownercheck(Oid sub_oid, Oid roleid) diff --git a/src/backend/commands/subscriptioncmds.c b/src/backend/commands/subscriptioncmds.c index 519c6846e3..35dccbc0ad 100644 --- a/src/backend/commands/subscriptioncmds.c +++ b/src/backend/commands/subscriptioncmds.c @@ -912,7 +912,7 @@ AlterSubscriptionOwner_internal(Relation rel, HeapTuple tup, Oid newOwnerId) (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), errmsg("permission denied to change owner of subscription \"%s\"", NameStr(form->subname)), - errhint("The owner of an subscription must be a superuser."))); + errhint("The owner of a subscription must be a superuser."))); form->subowner = newOwnerId; CatalogTupleUpdate(rel, &tup->t_self, tup); diff --git a/src/test/regress/expected/subscription.out b/src/test/regress/expected/subscription.out index 47531edd1b..b1686db12e 100644 --- a/src/test/regress/expected/subscription.out +++ b/src/test/regress/expected/subscription.out @@ -105,7 +105,7 @@ ALTER SUBSCRIPTION testsub_foo RENAME TO testsub; -- fail - new owner must be superuser ALTER SUBSCRIPTION testsub OWNER TO regress_subscription_user2; ERROR: permission denied to change owner of subscription "testsub" -HINT: The owner of an subscription must be a superuser. +HINT: The owner of a subscription must be a superuser. ALTER ROLE regress_subscription_user2 SUPERUSER; -- now it works ALTER SUBSCRIPTION testsub OWNER TO regress_subscription_user2; |