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 by date:
Соглашаюсь с условиями обработки персональных данных