Skip to content

Commit b9eb0ff

Browse files
committed
Rename pg_checkpointer predefined role to pg_checkpoint.
This is more consistent with how other predefined roles that confer specific privileges are named. Nathan Bosart Discussion: http://postgr.es/m/CA+TgmoatH7+yYe+A8uJFNogg3VUDtFE6c-77yHAY8TRWR7oqyw@mail.gmail.com
1 parent 09878cd commit b9eb0ff

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
case T_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 of pg_checkpointer to do CHECKPOINT")));
953+
errmsg("must be superuser or have privileges of pg_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-
#define CATALOG_VERSION_NO 202207051
56+
#define CATALOG_VERSION_NO 202207052
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)