mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
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
This commit is contained in:
parent
7390b6421a
commit
f7c53bb9e3
@ -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),
|
||||
|
@ -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),
|
||||
|
@ -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),
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user