Re: Latch for the WAL writer - further reducing idle wake-ups.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Latch for the WAL writer - further reducing idle wake-ups.
Дата
Msg-id 11231.1336016560@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Latch for the WAL writer - further reducing idle wake-ups.  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Latch for the WAL writer - further reducing idle wake-ups.  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> ... It seems unlikely to cause any real
> problem if WAL writer takes a couple seconds to get with the program
> after a long period of inactivity; note that an async commit will kick
> it anyway, and a sync commit will probably half to flush WAL whether
> the WAL writer wakes up or not.

That's a good point.  What about only kicking the WAL writer in code
paths where a backend found itself having to write/flush WAL for itself?
The added overhead is very surely negligible in such a situation.
        regards, tom lane


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

Предыдущее
От: Noah Misch
Дата:
Сообщение: Re: Torn page hazard in ginRedoUpdateMetapage()
Следующее
От: Vivek Singh Raghuwanshi
Дата:
Сообщение: Re: Features of Postgresql and Postgres-xc with MySQL