Re: vacuumdb: permission denied for schema "pg_temp_7"

From: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Christophe Pettus <xof(at)thebuild(dot)com>, Nathan Bossart <nathandbossart(at)gmail(dot)com>, vaibhave postgres <postgresvaibhave(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Noah Misch <noah(at)leadboat(dot)com>, 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-26 14:19:33
Message-ID: b54507e4-6fa6-4198-92be-ea9118d131da@oss.nttdata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 2024/09/25 8:20, Michael Paquier wrote:
>> We should probably add a condition like "relpersistence != CppAsString2(RELPERSISTENCE_TEMP)"
>> to the queries in get_parallel_object_list().
>
> Missed your point. An extra filter based on relpersistence can indeed
> make sense for this path.

Patch attached.

Should reindexdb skip temporary tables or indexes even when specified explicitly
with the -t or -i options? Currently, the patch doesn't change this behavior;
reindexdb will still not skip them if specified.

If we agree to back-patch, it should be applied to v13, as parallel mode was
introduced in that version.

Regards,

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

Attachment Content-Type Size
v1-0001-reindexdb-Skip-reindexing-temporary-tables-and-in.patch text/plain 1.9 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2024-09-26 18:00:01 BUG #18634: Wrong varnullingrels with merge ... when not matched by source
Previous Message Devrim Gündüz 2024-09-26 12:44:40 Re: BUG #18631: Brocken postgresql12-devel RPM