Re: synchronous_commit=off doesn't always return immediately

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: synchronous_commit=off doesn't always return immediately
Дата
Msg-id 20090727015631.GB10327@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: synchronous_commit=off doesn't always return immediately  (tomrevam <tomer@fabrix.tv>)
Ответы Re: synchronous_commit=off doesn't always return immediately
Re: synchronous_commit=off doesn't always return immediately
Список pgsql-general
tomrevam wrote:

> The behavior of the system is the same with bg_writer_lru_maxpages =
> 0. Can you explain why transactions are sometimes synchronous even
> with the synchrounous_commit set to off?

Asynchronous transactions must still be logged to the journal from time
to time.  There's a background process called the "wal writer" that's
supposed to do that on the background, but if you have too much WAL
traffic then some transactions may block if there's not enough space in
the in-memory WAL buffer to store their changes, which causes them to
block.  This is why Tom was suggesting you to increase wal_buffers.  Did
you try that?

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Ruuning two instances of Postgres on the same machine
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: comparing NEW and OLD (any good this way?)