Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf7c53bb

Browse files
Consistently use "superuser" instead of "super user"
The correct nomenclature for the highest privileged user is superuserand not "super user", this replaces the few instances where that wasused erroneously. No user-visible changes are done as all changes arein comments, so no back-patching.Author: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>Discussion:https://postgr.es/m/CALj2ACW3snGBD8BAQiArMDS1Y43LuX3ymwO+N8aUg1Hrv6hYNw@mail.gmail.com
1 parent7390b64 commitf7c53bb

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

‎src/backend/commands/amcmds.c

Lines changed: 1 addition & 1 deletion
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 besuper user */
56+
/* Must besuperuser */
5757
if (!superuser())
5858
ereport(ERROR,
5959
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),

‎src/backend/commands/foreigncmds.c

Lines changed: 2 additions & 2 deletions
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 besuper user */
576+
/* Must besuperuser */
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 besuper user */
693+
/* Must besuperuser */
694694
if (!superuser())
695695
ereport(ERROR,
696696
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),

‎src/backend/commands/tablespace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ CreateTableSpace(CreateTableSpaceStmt *stmt)
242242
OidownerId;
243243
DatumnewOptions;
244244

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

‎src/test/regress/expected/conversion.out

Lines changed: 1 addition & 1 deletion
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 thesuper user
36+
-- return to thesuperuser
3737
--
3838
RESET SESSION AUTHORIZATION;
3939
DROP USER regress_conversion_user;

‎src/test/regress/sql/conversion.sql

Lines changed: 1 addition & 1 deletion
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 thesuper user
33+
-- return to thesuperuser
3434
--
3535
RESET SESSION AUTHORIZATION;
3636
DROPUSER regress_conversion_user;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp