Re: WAL segments pile up during standalone mode

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: WAL segments pile up during standalone mode
Дата
Msg-id 7926.1299166570@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: WAL segments pile up during standalone mode  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: WAL segments pile up during standalone mode  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> I admit I have no idea why these guys seem to run into wraparound
> problems so much.

> On the other hand, I'm not sure that it would work to try to checkpoint
> "during" vacuum, because the backend is in a transaction.  Maybe it
> would work to force a checkpoint after each command, and between tables
> in a multi-table vacuum (which is presumably a common thing to do in a
> standalone backend) or something like that?

I really don't care for the idea of standalone mode doing *anything*
the user didn't explicitly tell it to.  In its role as a disaster
recovery tool, that's just a recipe for shooting yourself in the foot.

Perhaps this problem would be adequately addressed by documentation,
ie suggest that when vacuuming very large tables in standalone mode,
you should issue CHECKPOINT after each one.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Quick Extensions Question
Следующее
От: Robert Haas
Дата:
Сообщение: Re: WAL segments pile up during standalone mode