Re: auto-sizing wal_buffers

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема Re: auto-sizing wal_buffers
Дата
Msg-id AANLkTinmuPO1zO-DG6x39GiuSHRUj-98tDVt1HpuMYvf@mail.gmail.com
обсуждение исходный текст
Ответ на Re: auto-sizing wal_buffers  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Sun, Jan 16, 2011 at 9:32 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Josh Berkus <josh@agliodbs.com> writes:
>> I think we can be more specific on that last sentence; is there even any
>> *theoretical* benefit to settings above 16MB, the size of a WAL segment?
>
> IIRC there's a forced fsync at WAL segment switch, so no.

However other backends can still do WAL inserts while that fsync
takes place,  as long as they can find available buffers to write into.
So that should not be too limiting--a larger wal_buffers make it more
likely they will find available buffers.

However if the background writer does not keep up under bulk loading
conditions, then the end of segment fsync will probably happen via
AdvanceXLInsertBuffer, which will be sitting on the WALInsertLock.  So
that is obviously bad news.

Cheers,

Jeff


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

Предыдущее
От: Andy Colson
Дата:
Сообщение: Re: plperlu problem with utf8 [REVIEW]
Следующее
От: Robert Haas
Дата:
Сообщение: Re: psql: Add \dL to show languages