Re: [PATCH] xlogreader: do not read a file block twice
Вложения
В списке pgsql-hackers по дате отправления:
| От | Michael Paquier |
|---|---|
| Тема | Re: [PATCH] xlogreader: do not read a file block twice |
| Дата | |
| Msg-id | 20190214230616.GA2240@paquier.xyz обсуждение |
| Ответ на | Re: [PATCH] xlogreader: do not read a file block twice (Arthur Zakirov <a.zakirov@postgrespro.ru>) |
| Ответы |
Re: [PATCH] xlogreader: do not read a file block twice
|
| Список | pgsql-hackers |
On Thu, Feb 14, 2019 at 11:20:56AM +0300, Arthur Zakirov wrote: > So we read whole page with size XLOG_BLCKSZ. The full code: > https://github.com/postgrespro/pg_probackup/blob/c052651b8c8864733bcabbc2660c387b792229d8/src/parsexlog.c#L1074 > > Here is the little optimization I made. Mainly I just add a buffer to store > previous read page: > https://github.com/postgrespro/pg_probackup/blob/c052651b8c8864733bcabbc2660c387b792229d8/src/parsexlog.c#L1046 Thanks, I see what you have done. I cannot comment if your shortcut is actually fully correct based on my knowledge of this code, but things cannot be in the best conditions without having the WAL reader handle properly the limits. So I am planning to commit what you propose after an extra pass on it in the next couple of days or so. -- Michael
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера