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

Commitb9eb0ff

Browse files
committed
Rename pg_checkpointer predefined role to pg_checkpoint.
This is more consistent with how other predefined roles that conferspecific privileges are named.Nathan BosartDiscussion:http://postgr.es/m/CA+TgmoatH7+yYe+A8uJFNogg3VUDtFE6c-77yHAY8TRWR7oqyw@mail.gmail.com
1 parent09878cd commitb9eb0ff

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

‎doc/src/sgml/ref/checkpoint.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ CHECKPOINT
5353

5454
<para>
5555
Only superusers or users with the privileges of
56-
the <link linkend="predefined-roles-table"><literal>pg_checkpointer</literal></link>
56+
the <link linkend="predefined-roles-table"><literal>pg_checkpoint</literal></link>
5757
role can call <command>CHECKPOINT</command>.
5858
</para>
5959
</refsect1>

‎doc/src/sgml/user-manag.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ DROP ROLE doomed_role;
583583
COPY and other functions which allow executing a server-side program.</entry>
584584
</row>
585585
<row>
586-
<entry>pg_checkpointer</entry>
586+
<entry>pg_checkpoint</entry>
587587
<entry>Allow executing
588588
the <link linkend="sql-checkpoint"><command>CHECKPOINT</command></link>
589589
command.</entry>

‎src/backend/tcop/utility.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,10 +947,10 @@ standard_ProcessUtility(PlannedStmt *pstmt,
947947
break;
948948

949949
caseT_CheckPointStmt:
950-
if (!has_privs_of_role(GetUserId(),ROLE_PG_CHECKPOINTER))
950+
if (!has_privs_of_role(GetUserId(),ROLE_PG_CHECKPOINT))
951951
ereport(ERROR,
952952
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
953-
errmsg("must be superuser or have privileges ofpg_checkpointer to do CHECKPOINT")));
953+
errmsg("must be superuser or have privileges ofpg_checkpoint to do CHECKPOINT")));
954954

955955
RequestCheckpoint(CHECKPOINT_IMMEDIATE |CHECKPOINT_WAIT |
956956
(RecoveryInProgress() ?0 :CHECKPOINT_FORCE));

‎src/include/catalog/catversion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
*/
5454

5555
/*yyyymmddN */
56-
#defineCATALOG_VERSION_NO202207051
56+
#defineCATALOG_VERSION_NO202207052
5757

5858
#endif

‎src/include/catalog/pg_authid.dat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@
7979
rolcreaterole => 'f', rolcreatedb => 'f', rolcanlogin => 'f',
8080
rolreplication => 'f', rolbypassrls => 'f', rolconnlimit => '-1',
8181
rolpassword => '_null_', rolvaliduntil => '_null_' },
82-
{ oid => '4544', oid_symbol => 'ROLE_PG_CHECKPOINTER',
83-
rolname => 'pg_checkpointer', rolsuper => 'f', rolinherit => 't',
82+
{ oid => '4544', oid_symbol => 'ROLE_PG_CHECKPOINT',
83+
rolname => 'pg_checkpoint', rolsuper => 'f', rolinherit => 't',
8484
rolcreaterole => 'f', rolcreatedb => 'f', rolcanlogin => 'f',
8585
rolreplication => 'f', rolbypassrls => 'f', rolconnlimit => '-1',
8686
rolpassword => '_null_', rolvaliduntil => '_null_' },

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp