Fix typos in comment and log message.
authorFujii Masao <fujii@postgresql.org>
Mon, 17 Apr 2017 18:19:39 +0000 (03:19 +0900)
committerFujii Masao <fujii@postgresql.org>
Mon, 17 Apr 2017 18:19:39 +0000 (03:19 +0900)
src/backend/catalog/aclchk.c
src/backend/commands/subscriptioncmds.c
src/test/regress/expected/subscription.out

index 2d535c2aada6951c0a6a9aa8d06ce4a849758a5c..70e3e6229c935d87a2446c4c64d3982b59c9e064 100644 (file)
@@ -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)
index 519c6846e35a1724aae35231c11d1bbe4c3b0b7b..35dccbc0ad6204b4456fe4cade8b385bdf808be7 100644 (file)
@@ -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);
index 47531edd1b51e8b662adefa3cb8b5fe09407a78f..b1686db12ecba1d04c6c055f4868845a527b5539 100644 (file)
@@ -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;