Re: permission denied for pg_temp_XX when vacuuming

2021-03-04 Thread Tobias Lott
hm ok, thank you Tom. As you mentioned, I think it is not really possible to find out which of the sessions should be there and which not. Also, as it is a Cloud SQL instance in GCP, I don't have access to a user with superuser attributes. Best regards, Tobias On Wed, 3 Mar 2021 at 17:33, Tom Lan

Re: permission denied for pg_temp_XX when vacuuming

2021-03-04 Thread Tobias Lott
okay, thank you Tom. There were no crashes of the instance, but some issues with the connected application, resulting in 'could not receive data from client: Connection reset by peer' and 'unexpected EOF on client connection with an open transaction'. So if this might have left behind temp tables

Re: permission denied for pg_temp_XX when vacuuming

2021-03-04 Thread Tobias Lott
Yes that's strange. A lot of pg_XX tables are skipped, but some of these pg_temp schemas cause errors. Could it be connected to a migration of the database (from an instance running PostgreSQL 9.6 to an instance running PostgreSQL 12) done a few weeks ago? Regards, Tobias On Wed, 3 Mar 2021 at 16

Re: permission denied for pg_temp_XX when vacuuming

2021-03-03 Thread Tom Lane
Tobias Lott writes: > There were no crashes of the instance, but some issues with the connected > application, resulting in 'could not receive data from client: Connection > reset by peer' and 'unexpected EOF on client connection with an open > transaction'. No, that sort of thing would still all

Re: permission denied for pg_temp_XX when vacuuming

2021-03-03 Thread Tom Lane
Tobias Lott writes: > Yes that's strange. A lot of pg_XX tables are skipped, but some of these > pg_temp schemas cause errors. > Could it be connected to a migration of the database (from an instance > running PostgreSQL 9.6 to an instance running PostgreSQL 12) done a few > weeks ago? I wouldn't

Re: permission denied for pg_temp_XX when vacuuming

2021-03-03 Thread Tom Lane
Laurenz Albe writes: > On Wed, 2021-03-03 at 09:58 +0100, Tobias Lott wrote: >> I have a database in a PostgreSQL 12 instance. >> When running vacuumdb -z on the database with the user set as owner of the >> DB, I sometimes, not always, get errors such as: >> error: vacuuming of table "pg_temp_93

Re: permission denied for pg_temp_XX when vacuuming

2021-03-03 Thread Tobias Lott
Hi Laurenz, good to know, thank you very much! Best regards, Tobias On Wed, 3 Mar 2021 at 12:10, Laurenz Albe wrote: > On Wed, 2021-03-03 at 09:58 +0100, Tobias Lott wrote: > > I have a database in a PostgreSQL 12 instance. > > When running vacuumdb -z on the database with the user set as owne

Re: permission denied for pg_temp_XX when vacuuming

2021-03-03 Thread Laurenz Albe
On Wed, 2021-03-03 at 09:58 +0100, Tobias Lott wrote: > I have a database in a PostgreSQL 12 instance. > When running vacuumdb -z on the database with the user set as owner of the > DB, I sometimes, not always, get errors such as: > error: vacuuming of table "pg_temp_93.vacuum_l" in database "1005

permission denied for pg_temp_XX when vacuuming

2021-03-03 Thread Tobias Lott
Hi, I have a database in a PostgreSQL 12 instance. When running vacuumdb -z on the database with the user set as owner of the DB, I sometimes, not always, get errors such as: error: vacuuming of table "pg_temp_93.vacuum_l" in database "10050" failed: ERROR: permission denied for schema pg_temp_93