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

Tobias Lott <tobias.lott@devoteam.com> 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 allow the backend to shut down cleanly.

> So if this might have left behind temp tables causing the errors, should I
> try to delete these pg_temp tables?

It would definitely be worth looking around to see if you have any temp
tables that shouldn't be there.  I think you can just do
	\dt pg_temp_*.*
in psql (as superuser) to see what's out there.  Figuring out which ones
are live sessions' temp tables might be harder, though.

			regards, tom lane





view thread (9+ messages)  latest in thread

Message-ID: <1194518.1614789221@sss.pgh.pa.us>
Permalink:  ../1194518.1614789221@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1194518.1614789221@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, tobias.lott@devoteam.com, laurenz.albe@cybertec.at
  Subject: Re: permission denied for pg_temp_XX when vacuuming
  In-Reply-To: <1194518.1614789221@sss.pgh.pa.us>
  References: <CANCOamzvWnviA+_ZPAUUYV=kW9_QOLNSJ7RzE4APYe-_DhtJfQ@mail.gmail.com> <aa0752c327533fb9b2970618cdf2f28a800cdaee.camel@cybertec.at> <1180816.1614784546@sss.pgh.pa.us> <CANCOamzGsTavN-JyMp85yAJRFB2bXberotvWFjn_SkFHg6jg_g@mail.gmail.com> <1182966.1614787828@sss.pgh.pa.us> <CANCOamz9gFMhk7fu9WxT6qY56iZwek9s3xOqsmN=N8UY5eXZ5A@mail.gmail.com> <1194518.1614789221@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