From: Bossart, Nathan <bossartn@amazon.com>
To: Jeff Davis <pgsql@j-davis.com>
To: Stephen Frost <sfrost@snowman.net>
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, 2 Nov 2021 17:45:49 +0000
Message-ID: <2E63F740-B422-40A8-B8B0-28CDD5FEF41F@amazon.com> (raw)
In-Reply-To: <5e7a618de1b49ba1ceede54ee1b1d073bd57f1f4.camel@j-davis.com>
References: <2f6c033019c3a1ec499b516e3e54022b7bcdb58a.camel@j-davis.com>
<202110310026.zmhkxct6ka6c@alvherre.pgsql>
<6498F6FC-714B-4AC2-B0E1-9A5321654277@amazon.com>
<20211101165025.GS20998@tamriel.snowman.net>
<5e7a618de1b49ba1ceede54ee1b1d073bd57f1f4.camel@j-davis.com>
On 11/2/21, 10:29 AM, "Jeff Davis" <pgsql@j-davis.com> wrote:
> Great idea! Patch attached.
>
> This feels like a good pattern that we might want to use elsewhere, if
> the need arises.
The approach in the patch looks alright to me, but another one could
be to build a SelectStmt when parsing CHECKPOINT. I think that'd
simplify the standard_ProcessUtility() changes.
Otherwise, I see a couple of warnings when compiling:
xlogfuncs.c:54: warning: implicit declaration of function ‘RequestCheckpoint’
xlogfuncs.c:56: warning: control reaches end of non-void function
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, sfrost@snowman.net, alvherre@alvh.no-ip.org, bharath.rupireddyforpostgres@gmail.com
Subject: Re: Predefined role pg_maintenance for VACUUM, ANALYZE, CHECKPOINT.
In-Reply-To: <2E63F740-B422-40A8-B8B0-28CDD5FEF41F@amazon.com>
References: <2f6c033019c3a1ec499b516e3e54022b7bcdb58a.camel@j-davis.com> <202110310026.zmhkxct6ka6c@alvherre.pgsql> <6498F6FC-714B-4AC2-B0E1-9A5321654277@amazon.com> <20211101165025.GS20998@tamriel.snowman.net> <5e7a618de1b49ba1ceede54ee1b1d073bd57f1f4.camel@j-davis.com> <2E63F740-B422-40A8-B8B0-28CDD5FEF41F@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