Consistently use "superuser" instead of "super user"
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Wed, 8 Sep 2021 15:02:18 +0000 (17:02 +0200)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Wed, 8 Sep 2021 15:02:18 +0000 (17:02 +0200)
The correct nomenclature for the highest privileged user is superuser
and not "super user", this replaces the few instances where that was
used erroneously. No user-visible changes are done as all changes are
in comments, so no back-patching.

Author: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Discussion: https://postgr.es/m/CALj2ACW3snGBD8BAQiArMDS1Y43LuX3ymwO+N8aUg1Hrv6hYNw@mail.gmail.com

src/backend/commands/amcmds.c
src/backend/commands/foreigncmds.c
src/backend/commands/tablespace.c
src/test/regress/expected/conversion.out
src/test/regress/sql/conversion.sql

index 188109e474c217652e24553ed70381ec6f196ce6..72e209a8b01e515d0ce0a72d642819d17f70bda2 100644 (file)
@@ -53,7 +53,7 @@ CreateAccessMethod(CreateAmStmt *stmt)
 
        rel = table_open(AccessMethodRelationId, RowExclusiveLock);
 
-       /* Must be super user */
+       /* Must be superuser */
        if (!superuser())
                ereport(ERROR,
                                (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
index 9b71beb1d38b68bec3ab53aedc871e28d8a4b555..146fa5733fceb53e84b2df6c5793c16a86391da3 100644 (file)
@@ -573,7 +573,7 @@ CreateForeignDataWrapper(ParseState *pstate, CreateFdwStmt *stmt)
 
        rel = table_open(ForeignDataWrapperRelationId, RowExclusiveLock);
 
-       /* Must be super user */
+       /* Must be superuser */
        if (!superuser())
                ereport(ERROR,
                                (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
@@ -690,7 +690,7 @@ AlterForeignDataWrapper(ParseState *pstate, AlterFdwStmt *stmt)
 
        rel = table_open(ForeignDataWrapperRelationId, RowExclusiveLock);
 
-       /* Must be super user */
+       /* Must be superuser */
        if (!superuser())
                ereport(ERROR,
                                (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
index 932e7ae37bc4adc6122e69e5e9b367d35d13254e..4b96eec9dfeeed85ce2d29192890cfe47f529ec5 100644 (file)
@@ -242,7 +242,7 @@ CreateTableSpace(CreateTableSpaceStmt *stmt)
        Oid                     ownerId;
        Datum           newOptions;
 
-       /* Must be super user */
+       /* Must be superuser */
        if (!superuser())
                ereport(ERROR,
                                (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
index 04fdcba4964a5669721a65393d273e7ba7aac730..5c9d63175562c67e36847b5539fecf38d6adf9d4 100644 (file)
@@ -33,7 +33,7 @@ DROP CONVERSION mydef;
 -- so there's no need to do that here.
 --
 --
--- return to the super user
+-- return to the superuser
 --
 RESET SESSION AUTHORIZATION;
 DROP USER regress_conversion_user;
index 835868243219774e1a3e23ce2368a7f2f32710ca..5576999e42ebd470a5a5f6f8ca1dc31ba597474a 100644 (file)
@@ -30,7 +30,7 @@ DROP CONVERSION mydef;
 -- so there's no need to do that here.
 --
 --
--- return to the super user
+-- return to the superuser
 --
 RESET SESSION AUTHORIZATION;
 DROP USER regress_conversion_user;