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

From Christophe Pettus
Subject Re: vacuumdb: permission denied for schema "pg_temp_7"
Date
Msg-id FA25664E-EDD5-42BE-AA25-1321E0A0C8BC@thebuild.com
Whole thread Raw
In response to Re: vacuumdb: permission denied for schema "pg_temp_7"  (vaibhave postgres <postgresvaibhave@gmail.com>)
Responses Re: vacuumdb: permission denied for schema "pg_temp_7"
Re: vacuumdb: permission denied for schema "pg_temp_7"
List pgsql-bugs

> On Sep 23, 2024, at 18:09, vaibhave postgres <postgresvaibhave@gmail.com> wrote:
> Yes I plan on continuing with working this.

Great!

One related but not identical thing that has come up with vacuumdb is that it terminates if it's not able to connect to
anydatabase that it finds in the initial query.  This can happen if pg_hba.conf denies the user that is running
vacuumdbaccess to a database that comes up during --all.  Some hosting providers (in particular, Google) create
restricteddatabases in the cluster that a customer role can't get access to.  This pretty much defeats
--analyze-in-stages. My suggested fix was to terminate with an error if the initial connection fails, but continue with
awarning if further connections fail. 

If it seems reasonable, I'm happy to do it in a separate patch.


pgsql-bugs by date:

Previous
From: vaibhave postgres
Date:
Subject: Re: vacuumdb: permission denied for schema "pg_temp_7"
Next
From: vaibhave postgres
Date:
Subject: Re: vacuumdb: permission denied for schema "pg_temp_7"