pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stephen Frost <sfrost@snowman.net>
Cc: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Cc: Jeff Davis <pgsql@j-davis.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: Predefined role pg_maintenance for VACUUM, ANALYZE, CHECKPOINT.
Date: Mon, 25 Oct 2021 13:51:56 -0400
Message-ID: <4053258.1635184316@sss.pgh.pa.us> (raw)
In-Reply-To: <20211025174318.GI20998@tamriel.snowman.net>
References: <67a1d667e8ec228b5e07f232184c80348c5d93f4.camel@j-davis.com>
	<CALj2ACUgLvWoH-aqC5LkmwyTJsxXyXO3BO1_o6QDVifNzMRKTg@mail.gmail.com>
	<20211025174318.GI20998@tamriel.snowman.net>

Stephen Frost <sfrost@snowman.net> writes:
> Independent of other things, getting to the point where everything can
> be done in the database without the need for superuser is absolutely a
> good goal to be striving for, not something to be avoiding.
> I don't think that makes superuser become 'dummy', but perhaps the
> only explicit superuser check we end up needing is "superuser is a
> member of all roles".  That would be a very cool end state.

I'm not entirely following how that's going to work.  It implies that
there is some allegedly-not-superuser role that has the ability to
become superuser -- either within SQL or by breaking out to the OS --
because certainly a superuser can do those things.

I don't think we're serving any good purpose by giving people the
impression that roles with such permissions are somehow not
superuser-equivalent.  Certainly, the providers who don't want to
give users superuser are just going to need a longer list of roles
they won't give access to (and they probably won't be pleased about
having to vet every predefined role carefully).

			regards, tom lane





view thread (65+ messages)  latest in thread

Message-ID: <4053258.1635184316@sss.pgh.pa.us>
Permalink:  ../4053258.1635184316@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4053258.1635184316@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, sfrost@snowman.net, bharath.rupireddyforpostgres@gmail.com, pgsql@j-davis.com
  Subject: Re: Predefined role pg_maintenance for VACUUM, ANALYZE, CHECKPOINT.
  In-Reply-To: <4053258.1635184316@sss.pgh.pa.us>
  References: <67a1d667e8ec228b5e07f232184c80348c5d93f4.camel@j-davis.com> <CALj2ACUgLvWoH-aqC5LkmwyTJsxXyXO3BO1_o6QDVifNzMRKTg@mail.gmail.com> <20211025174318.GI20998@tamriel.snowman.net> <4053258.1635184316@sss.pgh.pa.us>

* 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