From: Mark Dilger <mark.dilger@enterprisedb.com>
To: 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 14:12:16 -0700
Message-ID: <73B162AC-0A2D-4953-8E20-AFB423D2E4E3@enterprisedb.com> (raw)
In-Reply-To: <CALj2ACUgLvWoH-aqC5LkmwyTJsxXyXO3BO1_o6QDVifNzMRKTg@mail.gmail.com>
References: <67a1d667e8ec228b5e07f232184c80348c5d93f4.camel@j-davis.com>
<CALj2ACUgLvWoH-aqC5LkmwyTJsxXyXO3BO1_o6QDVifNzMRKTg@mail.gmail.com>
> On Oct 24, 2021, at 7:49 AM, Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> wrote:
>
> At this point, the idea of having a new role for maintenance work
> looks good. With this patch and Mark Dilger's patch introducing a
> bunch of new predefined roles, one concern is that we might reach to a
> state where we will have patches being proposed for new predefined
> roles for every database activity and the superuser eventually will
> have nothing to do in the database, it just becomes dummy?
>
> I'm not sure if Mark Dilger's patch on new predefined roles has a
> suitable/same role that we can use here.
If you refer to the ALTER SYSTEM SET patches, which I agree introduce a number of new predefined roles, it may interest you that Andrew has requested that I rework that patch set. In particular, he would like me to implement a new system of grants whereby the authority to ALTER SYSTEM SET can be granted per GUC rather than having predefined roles which hardcoded privileges.
I have not withdrawn the ALTER SYSTEM SET patches yet, as I don't know if Andrew's proposal can be made to work, but I wouldn't recommend tying this pg_maintenance idea to that set.
—
Mark Dilger
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
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: mark.dilger@enterprisedb.com, bharath.rupireddyforpostgres@gmail.com, pgsql@j-davis.com
Subject: Re: Predefined role pg_maintenance for VACUUM, ANALYZE, CHECKPOINT.
In-Reply-To: <73B162AC-0A2D-4953-8E20-AFB423D2E4E3@enterprisedb.com>
References: <67a1d667e8ec228b5e07f232184c80348c5d93f4.camel@j-davis.com> <CALj2ACUgLvWoH-aqC5LkmwyTJsxXyXO3BO1_o6QDVifNzMRKTg@mail.gmail.com> <73B162AC-0A2D-4953-8E20-AFB423D2E4E3@enterprisedb.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