Re: Alter table set logged hanging after writing out all WAL

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Alter table set logged hanging after writing out all WAL
Дата
Msg-id 20180206071948.GC74355@paquier.xyz
обсуждение исходный текст
Ответ на Alter table set logged hanging after writing out all WAL  (Jeremy Finzel <finzelj@gmail.com>)
Ответы Re: Alter table set logged hanging after writing out all WAL  (Jeremy Finzel <finzelj@gmail.com>)
Список pgsql-general
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

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Abhra Kar
Дата:
Сообщение: Found non-empty schema without metadata table error while migrating
Следующее
От: Michael Krüger
Дата:
Сообщение: Parallel Query - Can it be used within functions?