| От | Tom Lane |
|---|---|
| Тема | Re: PostgreSQL as a local in-memory cache |
| Дата | |
| Msg-id | 20972.1277832454@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: PostgreSQL as a local in-memory cache (Bruce Momjian <bruce@momjian.us>) |
| Ответы |
Re: PostgreSQL as a local in-memory cache
|
| Список | pgsql-performance |
Bruce Momjian <bruce@momjian.us> writes:
>>> I asked on IRC and was told it is true, and looking at the C code it
>>> looks true. ?What synchronous_commit = false does is to delay writing
>>> the wal buffers to disk and fsyncing them, not just fsync, which is
>>> where the commit loss due to db process crash comes from.
>> Ah, I see. Thanks.
> I am personally surprised it was designed that way; I thought we would
> just delay fsync.
That would require writing and syncing to be separable actions. If
you're using O_SYNC or similar, they aren't.
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера