mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
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
This commit is contained in:
@ -947,10 +947,10 @@ standard_ProcessUtility(PlannedStmt *pstmt,
|
||||
break;
|
||||
|
||||
case T_CheckPointStmt:
|
||||
if (!has_privs_of_role(GetUserId(), ROLE_PG_CHECKPOINTER))
|
||||
if (!has_privs_of_role(GetUserId(), ROLE_PG_CHECKPOINT))
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
|
||||
errmsg("must be superuser or have privileges of pg_checkpointer to do CHECKPOINT")));
|
||||
errmsg("must be superuser or have privileges of pg_checkpoint to do CHECKPOINT")));
|
||||
|
||||
RequestCheckpoint(CHECKPOINT_IMMEDIATE | CHECKPOINT_WAIT |
|
||||
(RecoveryInProgress() ? 0 : CHECKPOINT_FORCE));
|
||||
|
@ -53,6 +53,6 @@
|
||||
*/
|
||||
|
||||
/* yyyymmddN */
|
||||
#define CATALOG_VERSION_NO 202205191
|
||||
#define CATALOG_VERSION_NO 202207052
|
||||
|
||||
#endif
|
||||
|
@ -79,8 +79,8 @@
|
||||
rolcreaterole => 'f', rolcreatedb => 'f', rolcanlogin => 'f',
|
||||
rolreplication => 'f', rolbypassrls => 'f', rolconnlimit => '-1',
|
||||
rolpassword => '_null_', rolvaliduntil => '_null_' },
|
||||
{ oid => '4544', oid_symbol => 'ROLE_PG_CHECKPOINTER',
|
||||
rolname => 'pg_checkpointer', rolsuper => 'f', rolinherit => 't',
|
||||
{ oid => '4544', oid_symbol => 'ROLE_PG_CHECKPOINT',
|
||||
rolname => 'pg_checkpoint', rolsuper => 'f', rolinherit => 't',
|
||||
rolcreaterole => 'f', rolcreatedb => 'f', rolcanlogin => 'f',
|
||||
rolreplication => 'f', rolbypassrls => 'f', rolconnlimit => '-1',
|
||||
rolpassword => '_null_', rolvaliduntil => '_null_' },
|
||||
|
Reference in New Issue
Block a user