pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Tobias Lott <tobias.lott@devoteam.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: permission denied for pg_temp_XX when vacuuming
Date: Wed, 03 Mar 2021 10:15:46 -0500
Message-ID: <1180816.1614784546@sss.pgh.pa.us> (raw)
In-Reply-To: <aa0752c327533fb9b2970618cdf2f28a800cdaee.camel@cybertec.at>
References: <CANCOamzvWnviA+_ZPAUUYV=kW9_QOLNSJ7RzE4APYe-_DhtJfQ@mail.gmail.com>
	<aa0752c327533fb9b2970618cdf2f28a800cdaee.camel@cybertec.at>

Laurenz Albe <laurenz.albe@cybertec.at> 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.vacuum_l" in database "10050" failed: ERROR: permission denied for schema pg_temp_93
>> The specific number of the pg_temp schema (pg_temp_XX) is always changing. What could be the reason for this error?

> Those are schemas for temporary tables, which you cannot VACUUM outside the
> session that created them, so you can safely ignore these errors.

Indeed, but I'm wondering why vacuumdb isn't skipping them
automatically.  Something fishy seems to be happening there.

			regards, tom lane





view thread (9+ messages)  latest in thread

Message-ID: <1180816.1614784546@sss.pgh.pa.us>
Permalink:  ../1180816.1614784546@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1180816.1614784546@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, laurenz.albe@cybertec.at, tobias.lott@devoteam.com
  Subject: Re: permission denied for pg_temp_XX when vacuuming
  In-Reply-To: <1180816.1614784546@sss.pgh.pa.us>
  References: <CANCOamzvWnviA+_ZPAUUYV=kW9_QOLNSJ7RzE4APYe-_DhtJfQ@mail.gmail.com> <aa0752c327533fb9b2970618cdf2f28a800cdaee.camel@cybertec.at> <1180816.1614784546@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox