Re: vacuumdb: permission denied for schema "pg_temp_7"

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: vaibhave postgres <postgresvaibhave@gmail.com>
Cc: Christophe Pettus <xof@thebuild.com>, Nathan Bossart <nathandbossart@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, Fujii Masao <masao.fujii@oss.nttdata.com>, Noah Misch <noah@leadboat.com>, PostgreSQL Bug List <pgsql-bugs@lists.postgresql.org>, vsekar@microsoft.com
Date: 2024-09-24T01:56:27Z
Lists: pgsql-bugs

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. vacuumdb: Schema-qualify operator in catalog query's WHERE clause.

  2. reindexdb: Skip reindexing temporary tables and indexes.

  3. vacuumdb: Skip temporary tables in query to build list of relations

  4. Use catalog query to discover tables to process in vacuumdb

On Tue, Sep 24, 2024 at 07:05:41AM +0530, vaibhave postgres wrote:
> Looks like Michael has already sent the updated patch from the discussions
> in this thread so far. Let me know if anything else needs to be done.

Yes, the timing of your reply was interesting ;)

The temporary persistence issue is one side of the coin, and that's
the only part I have sent now as there is also a performance argument
(while being entirely useless to do).  The permission parts with USAGE
and MAINTAIN need a bit more thoughts.
--
Michael