Re: vacuumdb: permission denied for schema "pg_temp_7" - Mailing list pgsql-bugs

From Fujii Masao
Subject Re: vacuumdb: permission denied for schema "pg_temp_7"
Date
Msg-id 059dfcc2-81fd-4936-8d92-099490c0c713@oss.nttdata.com
Whole thread Raw
In response to Re: vacuumdb: permission denied for schema "pg_temp_7"  (Noah Misch <noah@leadboat.com>)
List pgsql-bugs

On 2024/09/21 4:07, Noah Misch wrote:
> Non-superuser vacuumdb
> must be rare indeed for this to go unnoticed long enough to leave all
> supported branches affected.

Yes.
And more users might notice this in v17 or later, since v17 supports
the maintain privilege. Some users may want to use a role with
the maintain privilege to run vacuumdb. If they forget to grant USAGE
privilege on the temp table's schema to that role, they'll encounter
the same issue.

Regards,

-- 
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION




pgsql-bugs by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: BUG #18569: Memory leak in Postgres Enterprise server
Next
From: Fujii Masao
Date:
Subject: Re: vacuumdb: permission denied for schema "pg_temp_7"