Re: vacuumdb: permission denied for schema "pg_temp_7"

From: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>
To: Noah Misch <noah(at)leadboat(dot)com>, vaibhave postgres <postgresvaibhave(at)gmail(dot)com>, nathandbossart(at)gmail(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org, vsekar(at)microsoft(dot)com
Subject: Re: vacuumdb: permission denied for schema "pg_temp_7"
Date: 2024-09-21 05:56:22
Message-ID: 059dfcc2-81fd-4936-8d92-099490c0c713@oss.nttdata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Fujii Masao 2024-09-21 05:59:51 Re: vacuumdb: permission denied for schema "pg_temp_7"
Previous Message Tomas Vondra 2024-09-21 00:28:21 Re: BUG #18569: Memory leak in Postgres Enterprise server