Re: Excessive WAL generation and related performance issue

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: Excessive WAL generation and related performance issue
Дата
Msg-id 20140415004007.GY2556@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: Excessive WAL generation and related performance issue  (Joe Conway <mail@joeconway.com>)
Ответы Re: Excessive WAL generation and related performance issue  (Joe Conway <mail@joeconway.com>)
Список pgsql-hackers
* Joe Conway (mail@joeconway.com) wrote:
> That's the thing. I'm sure there is tuning and other things to improve
> this particular case, but creating over 20 times as much WAL as real
> data seems like pathological behavior to me.

Setting things up such that you are updating a single value on each page
in an index during each checkpoint, which then requires basically
rewriting the entire index as full page writes at checkpoint time, is
definitely pathological behavior- but sadly, not behavior we are likely
to be able to fix..

This sounds like a great example of the unlogged table -> logged table
use-case and makes me wonder if we could provide an optimization similar
to the existing CREATE TABLE + COPY under wal_level = minimal case,
where we wouldn't WAL log anything for CREATE TABLE + COPY even when
wal_level is above minimal, until COMMIT, at which point we'll blast the
whole thing out in one shot.

Another option that you might consider is ordering your input, if
possible, to improve the chances that the same page is changed multiple
times inside a given checkpoint, hopefully reducing the number of pages
changed.
Thanks,
    Stephen

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Clock sweep not caching enough B-Tree leaf pages?
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Clock sweep not caching enough B-Tree leaf pages?