| От | Simon Riggs |
|---|---|
| Тема | Re: Hot standby, recovery infra |
| Дата | |
| Msg-id | 1233156349.2327.2418.camel@ebony.2ndQuadrant обсуждение исходный текст |
| Ответ на | Re: Hot standby, recovery infra (Fujii Masao <masao.fujii@gmail.com>) |
| Список | pgsql-hackers |
On Wed, 2009-01-28 at 23:54 +0900, Fujii Masao wrote: > >> Why is InitXLOGAccess() called also here when bgwriter is started after > >> recovery? That is already called by AuxiliaryProcessMain(). > > > > InitXLOGAccess() sets the timeline and also gets the latest record > > pointer. If the bgwriter is started in recovery these values need to be > > reset later. It's easier to call it twice. > > Right. But, InitXLOGAccess() called during main loop is enough for > that purpose. I think the code is clearer the way it is. Otherwise you'd read AuxiliaryProcessMain() and think the bgwriter didn't need xlog access. -- Simon Riggs www.2ndQuadrant.comPostgreSQL Training, Services and Support
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера