From: Michael Paquier <michael.paquier@gmail.com>
To: Jeremy Finzel <finzelj@gmail.com>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Alter table set logged hanging after writing out all WAL
Date: Tue, 6 Feb 2018 16:19:48 +0900
Message-ID: <20180206071948.GC74355@paquier.xyz> (raw)
In-Reply-To: <CAMa1XUg=9YKo4_VgVNWJZVt7MsKEnui5VnRKL1cyVbJgnmUG9g@mail.gmail.com>
References: <CAMa1XUg=9YKo4_VgVNWJZVt7MsKEnui5VnRKL1cyVbJgnmUG9g@mail.gmail.com>
On Tue, Feb 06, 2018 at 12:50:56AM -0600, Jeremy Finzel wrote:
> The table I am setting to logged is 32GB with indexes. I see it writing
> WAL files like crazy but after about an hour and a half, it has written out
> some 2500 WAL segments, then it just sits and continues to run as "active",
> but no more WAL files are being created. There are no locks, and no other
> transactions in the system running.
Switching an unlogged table to be logged causes an entire image of the
table to be WAL-logged so as the operation is consistent in case of a
crash.
> Any ideas? Is it still doing something that I need to wait for?
Do you have a backtrace with the process doing the ALTER TABLE hanging?
How is structured you table with its indexes? It is a bit hard to guess
much without more information.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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: michael.paquier@gmail.com, finzelj@gmail.com
Subject: Re: Alter table set logged hanging after writing out all WAL
In-Reply-To: <20180206071948.GC74355@paquier.xyz>
References: <CAMa1XUg=9YKo4_VgVNWJZVt7MsKEnui5VnRKL1cyVbJgnmUG9g@mail.gmail.com> <20180206071948.GC74355@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