public inbox for [email protected]
help / color / mirror / Atom feedFrom: PG Bug reporting form <[email protected]>
To: [email protected]
Cc: [email protected]
Subject: BUG #19475: VACUUM on a partition still warns after MAINTAIN is granted on the partitioned parent
Date: Mon, 11 May 2026 07:41:42 +0000
Message-ID: <[email protected]> (raw)
The following bug has been logged on the website:
Bug reference: 19475
Logged by: Chi Zhang
Email address: [email protected]
PostgreSQL version: 18.3
Operating system: Ubuntu 24.04
Description:
Hi,
I tested the current PostgreSQL master at commit 901ed9b352b (postgres
--version reports PostgreSQL 19devel). The current branch already contains
commit ff9618e82a466fc9c635f9f087776e57b21e4f14, whose commit message says:
“For partitions, allow the maintenance command if the user has the MAINTAIN
privilege on the partition or any parent.”
However, the following test case still produces a permission warning when
VACUUM is run directly on a partition after granting MAINTAIN only on its
partitioned parent.
Reproduction:
```
CREATE TABLE parent (a int) PARTITION BY RANGE (a);
CREATE TABLE child PARTITION OF parent
FOR VALUES FROM (0) TO (100);
INSERT INTO parent VALUES (1), (2), (3);
GRANT MAINTAIN ON parent TO main_role;
SET client_min_messages = warning;
SET ROLE main_role;
VACUUM child; -- WARNING: permission denied to vacuum "child", skipping it
```
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: BUG #19475: VACUUM on a partition still warns after MAINTAIN is granted on the partitioned parent
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox