pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Jeff Davis <pgsql@j-davis.com>
Cc: Bossart, Nathan <bossartn@amazon.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
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:02:55 -0400
Message-ID: <20211026200255.GO20998@tamriel.snowman.net> (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>

Greetings,

* 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?

For the use-case presented, I don't really buy off on this argument.
We're talking about benchmarking tools, surely they can be and likely
already are updated with some regularity for new major versions of PG.
I wonder also if there aren't other things besides this that would need
to be changed for them to work as a non-superuser anyway too, meaning
this would be just one change among others that they'd need to make.

In this specific case, I'd be more inclined to provide a function rather
than an explicit predefined role for this one thing.

Thanks,

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (65+ messages)  latest in thread

Message-ID: <20211026200255.GO20998@tamriel.snowman.net>
Permalink:  ../20211026200255.GO20998@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20211026200255.GO20998@tamriel.snowman.net

 · 

reply

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: sfrost@snowman.net, pgsql@j-davis.com, bossartn@amazon.com, alvherre@alvh.no-ip.org, bharath.rupireddyforpostgres@gmail.com
  Subject: Re: Predefined role pg_maintenance for VACUUM, ANALYZE, CHECKPOINT.
  In-Reply-To: <20211026200255.GO20998@tamriel.snowman.net>
  References: <202110252055.soecywkiu6gi@alvherre.pgsql> <baebf454bf12de663c57021715d965641f679209.camel@j-davis.com> <0282D099-11ED-45AE-93DB-E0B974F485DF@amazon.com> <06ee895767b46f631327d7e029d46106a8a6fbe9.camel@j-davis.com> <20211026200255.GO20998@tamriel.snowman.net>

* 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