From: Bossart, Nathan <bossartn@amazon.com>
To: Jeff Davis <pgsql@j-davis.com>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: Predefined role pg_maintenance for VACUUM, ANALYZE, CHECKPOINT.
Date: Tue, 26 Oct 2021 16:28:54 +0000
Message-ID: <8C661979-AF85-4AE1-9E2B-2A091DA3DB22@amazon.com> (raw)
In-Reply-To: <06ee895767b46f631327d7e029d46106a8a6fbe9.camel@j-davis.com>
References: <202110252055.soecywkiu6gi@alvherre.pgsql>
<baebf454bf12de663c57021715d965641f679209.camel@j-davis.com>
<0282D099-11ED-45AE-93DB-E0B974F485DF@amazon.com>
<06ee895767b46f631327d7e029d46106a8a6fbe9.camel@j-davis.com>
On 10/25/21, 6:48 PM, "Jeff Davis" <pgsql@j-davis.com> wrote:
> On Tue, 2021-10-26 at 00:07 +0000, Bossart, Nathan wrote:
>> It feels a bit excessive to introduce a new predefined role just for
>> this. Perhaps this could be accomplished with a new function that
>> could be granted.
>
> It would be nice if the syntax could be used, since it's pretty
> widespread. I guess it does feel excessive to have its own predefined
> role, but at the same time it's hard to group a command like CHECKPOINT
> into a category. Maybe if we named it something like pg_performance or
> something we could make a larger group?
I do think a larger group is desirable, but as is evidenced by this
thread, it may be some time until we can figure out exactly how that
would look. I feel like there's general support for being able to
allow non-superusers to CHECKPOINT and do other
maintenance/performance tasks, though.
I think my main concern with pg_checkpointer is that it could set a
precedent for new predefined roles, and we'd end up with dozens or
more. But as long as new predefined roles aren't terribly expensive,
maybe that's not all that bad. The advantage of having a
pg_checkpointer role is that it enables users to grant just CHECKPOINT
and nothing else. If we wanted a larger "pg_performance" group in the
future, we could introduce that role and make it a member of
pg_checkpointer and others (similar to how pg_monitor works).
Nathan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: bossartn@amazon.com, pgsql@j-davis.com, alvherre@alvh.no-ip.org, sfrost@snowman.net, bharath.rupireddyforpostgres@gmail.com
Subject: Re: Predefined role pg_maintenance for VACUUM, ANALYZE, CHECKPOINT.
In-Reply-To: <8C661979-AF85-4AE1-9E2B-2A091DA3DB22@amazon.com>
References: <202110252055.soecywkiu6gi@alvherre.pgsql> <baebf454bf12de663c57021715d965641f679209.camel@j-davis.com> <0282D099-11ED-45AE-93DB-E0B974F485DF@amazon.com> <06ee895767b46f631327d7e029d46106a8a6fbe9.camel@j-davis.com> <8C661979-AF85-4AE1-9E2B-2A091DA3DB22@amazon.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox