From: Arthur Zakirov <a.zakirov@postgrespro.ru>
To: Jahwan Kim <blgl13.net@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Cannot vacuum even in single-user mode after xidStopLimit is reached
Date: Mon, 18 Feb 2019 16:49:17 +0300
Message-ID: <66439d0a-d00e-ca55-cad4-04925314be7e@postgrespro.ru> (raw)
In-Reply-To: <CADU5SwN6u4radqQgUY2VjEyqXF0KJ6A09PYuJjT=o9d7vzM=Cg@mail.gmail.com>
References: <CADU5SwN6u4radqQgUY2VjEyqXF0KJ6A09PYuJjT=o9d7vzM=Cg@mail.gmail.com>
Hello,
On 18.02.2019 15:05, Jahwan Kim wrote:
> So apparently I'm in some loop without any clear way out.
> The most similar thing I found was "Could not finish anti-wraparound
> VACUUM when stop limit is reached"
> https://www.postgresql.org/message-id/53820ED9.3010003@vmware.com. This
> is quite old, though.
>
> Two questions:
>
> (1) Can I revive this database?
> (2) How did this possibly happen?
1 - I think yes. But you need to drop *ALL* (in all bases) temporary
tables manually and only then do VACUUM (in single mode of course).
Unfortunately VACUUM do not drop and vacuum orphan temporary tables.
2 - I think you have a long lived session with long lived temporary
tables. Autovacuum do not freeze temporary tables and it cannot move
relfrozenxid. That's why you get wraparound. To avoid it you need to
drop unnecessary temporary tables or do VACUUM in a long lived session.
--
Arthur Zakirov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company
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: a.zakirov@postgrespro.ru, blgl13.net@gmail.com
Subject: Re: Cannot vacuum even in single-user mode after xidStopLimit is reached
In-Reply-To: <66439d0a-d00e-ca55-cad4-04925314be7e@postgrespro.ru>
References: <CADU5SwN6u4radqQgUY2VjEyqXF0KJ6A09PYuJjT=o9d7vzM=Cg@mail.gmail.com> <66439d0a-d00e-ca55-cad4-04925314be7e@postgrespro.ru>
* 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