Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f7c53bb

Browse files
Consistently use "superuser" instead of "super user"
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
1 parent 7390b64 commit f7c53bb

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/backend/commands/amcmds.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ CreateAccessMethod(CreateAmStmt *stmt)
5353

5454
rel = table_open(AccessMethodRelationId, RowExclusiveLock);
5555

56-
/* Must be super user */
56+
/* Must be superuser */
5757
if (!superuser())
5858
ereport(ERROR,
5959
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),

src/backend/commands/foreigncmds.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ CreateForeignDataWrapper(ParseState *pstate, CreateFdwStmt *stmt)
573573

574574
rel = table_open(ForeignDataWrapperRelationId, RowExclusiveLock);
575575

576-
/* Must be super user */
576+
/* Must be superuser */
577577
if (!superuser())
578578
ereport(ERROR,
579579
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
@@ -690,7 +690,7 @@ AlterForeignDataWrapper(ParseState *pstate, AlterFdwStmt *stmt)
690690

691691
rel = table_open(ForeignDataWrapperRelationId, RowExclusiveLock);
692692

693-
/* Must be super user */
693+
/* Must be superuser */
694694
if (!superuser())
695695
ereport(ERROR,
696696
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),

src/backend/commands/tablespace.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ CreateTableSpace(CreateTableSpaceStmt *stmt)
242242
Oid ownerId;
243243
Datum newOptions;
244244

245-
/* Must be super user */
245+
/* Must be superuser */
246246
if (!superuser())
247247
ereport(ERROR,
248248
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),

src/test/regress/expected/conversion.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ DROP CONVERSION mydef;
3333
-- so there's no need to do that here.
3434
--
3535
--
36-
-- return to the super user
36+
-- return to the superuser
3737
--
3838
RESET SESSION AUTHORIZATION;
3939
DROP USER regress_conversion_user;

src/test/regress/sql/conversion.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ DROP CONVERSION mydef;
3030
-- so there's no need to do that here.
3131
--
3232
--
33-
-- return to the super user
33+
-- return to the superuser
3434
--
3535
RESET SESSION AUTHORIZATION;
3636
DROP USER regress_conversion_user;

0 commit comments

Comments
 (0)