[GENERAL] Which process is actually doing the WAL writes/calls XLogFlush?

Поиск
Список
Период
Сортировка
От Daniel Westermann
Тема [GENERAL] Which process is actually doing the WAL writes/calls XLogFlush?
Дата
Msg-id 2044578208.7456.1498222222798.JavaMail.zimbra@dbi-services.com
обсуждение исходный текст
Ответы Re: [GENERAL] Which process is actually doing the WAL writes/callsXLogFlush?
Список pgsql-general
Hi all,

as I did not find the answer in the documentation: Which background process is actually doing the writes/flushes to the WAL? In the docs (https://www.postgresql.org/docs/10/static/wal-configuration.html) it is explained which internal functions are responsible for this: XLogInsertRecord and XLogFlush but who does call them, especially the flush? Is it the process for the user connection itself then which calls this after commit? 

Initially I thought it is the job of the wal_writer but according to this blog post (http://www.cybertec.at/postgresql-writer-and-wal-writer-processes-explained/) this seems not to be true, right? Why do I need the wal_writer at all then when synchronous_commit is set to something else than off?

Thanks for your help
Daniel

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

Предыдущее
От: Karsten Hilbert
Дата:
Сообщение: Re: [GENERAL] PostgreSQL Cookbook Testing
Следующее
От: PAWAN SHARMA
Дата:
Сообщение: Re: [GENERAL] PostgreSQL Cookbook Testing