Re: RE: xlog checkpoint depends on sync() ... seems uns afe
В списке pgsql-hackers по дате отправления:
| От | Giles Lean |
|---|---|
| Тема | Re: RE: xlog checkpoint depends on sync() ... seems uns afe |
| Дата | |
| Msg-id | 22231.984466053@nemeton.com.au обсуждение исходный текст |
| Ответ на | Re: RE: xlog checkpoint depends on sync() ... seems uns afe (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
> Sounds quite unreliable to me. Unless there's some interlock ... like, > say, the second sync not being able to advance past a buffer page that's > as yet unwritten by the first sync. But would all Unixen share such a > strange detail of implementation? I heard Kirk McKusick tell this story in a 4.4BSD internals class. His explanation was that having an *operator* type 'sync' three times provided enough time for the first sync to do the work before the operator powered the system down or reset it or whatever. I've not heard of any filesystem implementation where the number of sync() system calls issued makes a difference, and imagine that any programmer who has written code to call sync three times has only heard part of the story. :-) Regards, Giles
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера