From: Bossart, Nathan <bossartn@amazon.com>
To: Jeff Davis <pgsql@j-davis.com>
To: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: Predefined role pg_maintenance for VACUUM, ANALYZE, CHECKPOINT.
Date: Mon, 25 Oct 2021 16:10:23 +0000
Message-ID: <BA225AFF-7778-41C8-8B59-92B0C423BCF8@amazon.com> (raw)
In-Reply-To: <1c3205584833be95e3225371f5b660f94088901d.camel@j-davis.com>
References: <67a1d667e8ec228b5e07f232184c80348c5d93f4.camel@j-davis.com>
<CALj2ACUgLvWoH-aqC5LkmwyTJsxXyXO3BO1_o6QDVifNzMRKTg@mail.gmail.com>
<fb10d827c1681e0c901445d12172c57b3b70b9be.camel@j-davis.com>
<B1C277EE-5432-4B42-AA90-EDB430A4E96D@amazon.com>
<1c3205584833be95e3225371f5b660f94088901d.camel@j-davis.com>
On 10/24/21, 11:13 PM, "Jeff Davis" <pgsql@j-davis.com> wrote:
> On Sun, 2021-10-24 at 21:32 +0000, Bossart, Nathan wrote:
>> My initial reaction was that members of pg_maintenance should be able
>> to do all of these things (VACUUM, ANALYZE, CLUSTER, REINDEX, and
>> CHECKPOINT).
>
> What about REFRESH MATERIALIZED VIEW? That seems more specific to a
> workload, but it's hard to draw a clear line between that and CLUSTER.
Hm. CLUSTER reorders the content of a table but does not change it.
REFRESH MATERIALIZED VIEW, on the other hand, does replace the
content. I think that's the sort of line I'd draw between REFRESH
MATERIALIZED VIEW and the other commands as well, so I'd leave it out
of pg_maintenance.
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, bharath.rupireddyforpostgres@gmail.com
Subject: Re: Predefined role pg_maintenance for VACUUM, ANALYZE, CHECKPOINT.
In-Reply-To: <BA225AFF-7778-41C8-8B59-92B0C423BCF8@amazon.com>
References: <67a1d667e8ec228b5e07f232184c80348c5d93f4.camel@j-davis.com> <CALj2ACUgLvWoH-aqC5LkmwyTJsxXyXO3BO1_o6QDVifNzMRKTg@mail.gmail.com> <fb10d827c1681e0c901445d12172c57b3b70b9be.camel@j-davis.com> <B1C277EE-5432-4B42-AA90-EDB430A4E96D@amazon.com> <1c3205584833be95e3225371f5b660f94088901d.camel@j-davis.com> <BA225AFF-7778-41C8-8B59-92B0C423BCF8@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