pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Max Vikharev <bm.kinder@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: pgsql-bugs <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #16691: Autovacuum stops processing certain databases until postgresql rebooted
Date: Wed, 30 Dec 2020 16:25:42 +0900
Message-ID: <X+wrdmfRjLS3ZzdS@paquier.xyz> (raw)
In-Reply-To: <CACRpr1NPQOcpibusH7Mh-je0CfG-Q3thtKtbMBU-NCO+UCyVxg@mail.gmail.com>
References: <16691-e029ffaaf2e1e10c@postgresql.org>
	<CAMkU=1yic6ADT9mSHQGzdUtzsp6u9R8xwzFv6Yj=ijVMXXGRvA@mail.gmail.com>
	<CACRpr1NLVbQ9o+Kv=R-CzO9fgtZAjKVoMHdmfPDoMrkDJYsyrA@mail.gmail.com>
	<387272.1604250098@sss.pgh.pa.us>
	<CACRpr1N3xndgt8Sz6x1b2ChzDk_cQTSk5_C2qSZM0BvngzrhGw@mail.gmail.com>
	<CACRpr1NSNNR77jZ5oY0viv1tm-jvAvtPE1cwwXZv2pWs7qER5Q@mail.gmail.com>
	<CACRpr1NPQOcpibusH7Mh-je0CfG-Q3thtKtbMBU-NCO+UCyVxg@mail.gmail.com>

On Tue, Dec 29, 2020 at 02:17:51PM +0300, Max Vikharev wrote:
> Finally we discovered that the problem is related to
> https://www.postgresql.org/message-id/flat/0A3221C70F24FB45833433255569204D1F8A4DC6%40G01JPEXMBYT05
> 
> Autovacuum hangs on the database which contains orphaned temp tables. When
> I deleted the schema with orphaned temporary tables - autovacuum continued
> to work without reboot.

Just wondering.  Are you sure that this instance is based on 12.3?
The removal of orphaned temp tables should be more aggressive as we
also track down in autovacuum if a specific temp schema OID is in use
by a backend, and the initialization of a temp namespace for a backend
cleans up temp objects from past connections that were leaving around
orphaned objects because of a crash (see around RemoveTempRelations()
in InitTempTableNamespace()). 
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (13+ messages)

Message-ID: <X+wrdmfRjLS3ZzdS@paquier.xyz>
Permalink:  ../X+wrdmfRjLS3ZzdS@paquier.xyz/
Also on:    postgresql.org/message-id/X+wrdmfRjLS3ZzdS@paquier.xyz

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: michael@paquier.xyz, bm.kinder@gmail.com, tgl@sss.pgh.pa.us, jeff.janes@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #16691: Autovacuum stops processing certain databases until postgresql rebooted
  In-Reply-To: <X+wrdmfRjLS3ZzdS@paquier.xyz>

* 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