Re: Decreasing WAL size effects

Поиск
Список
Период
Сортировка
От Kyle Cordes
Тема Re: Decreasing WAL size effects
Дата
Msg-id 490A243B.2030907@kylecordes.com
обсуждение исходный текст
Ответ на Re: Decreasing WAL size effects  (Greg Smith <gsmith@gregsmith.com>)
Список pgsql-general
Greg Smith wrote:
> On Thu, 30 Oct 2008, Kyle Cordes wrote:
>
>> It sure would be nice if there was a way for PG itself to zero the
>> unused portion of logs as they are completed, perhaps this will make


> The overhead of clearing out the whole thing is just large enough that
> it can be disruptive on systems generating lots of WAL traffic, so you

Hmm.  My understanding is that it wouldn't need to clear out the whole
thing, just the unused portion at the end. This wouldn't add any
initialize effort at startup / segment creation at all, right?  The
unused portions at the end only happen when a WAL segment needs to be
finished "early" for some reason.  I'd expect in a heavily loaded
system, that PG would be filling each segment, not ending them early.

However, there could easily be some reason that I am not familiar with,
that would cause a busy PG to nonetheless end a lot of segments early.

--
Kyle Cordes
http://kylecordes.com

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

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: Decreasing WAL size effects
Следующее
От: Alan Hodgson
Дата:
Сообщение: Re: speed up restore from dump