Re: Predefined role pg_maintenance for VACUUM, ANALYZE, CHECKPOINT.

Vik Fearing <vik@postgresfriends.org>

From: Vik Fearing <vik@postgresfriends.org>
To: Robert Haas <robertmhaas@gmail.com>, Jeff Davis <pgsql@j-davis.com>
Cc: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2021-11-02T23:00:12Z
Lists: pgsql-hackers
On 11/2/21 11:14 PM, Vik Fearing wrote:

> This would be nice, but there is nothing to hang our hat on:
> 
>     GRANT CHECKPOINT TO username;

Thinking about this more, why don't we just add CHECKPOINT and
NOCHECKPOINT attributes to roles?

    ALTER ROLE username WITH CHECKPOINT;
-- 
Vik Fearing



Commits

  1. Add pg_checkpointer predefined role for CHECKPOINT command.