Re: [PATCH] XLogReadRecord returns pointer to currently read page
Вложения
В списке pgsql-hackers по дате отправления:
| От | Michael Paquier |
|---|---|
| Тема | Re: [PATCH] XLogReadRecord returns pointer to currently read page |
| Дата | |
| Msg-id | 20181116062355.GE6613@paquier.xyz обсуждение исходный текст |
| Ответ на | Re: [PATCH] XLogReadRecord returns pointer to currently read page (Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>) |
| Ответы |
Re: [PATCH] XLogReadRecord returns pointer to currently read page
Re: [PATCH] XLogReadRecord returns pointer to currently read page |
| Список | pgsql-hackers |
On Thu, Nov 15, 2018 at 06:12:38PM +0900, Kyotaro HORIGUCHI wrote: > This patch eliminates unnecessary copying that was done for > non-continued records. Now the return value of XLogReadRecord > directly points into page buffer holded in XLogReaderStats. It is > safe because no caller site uses the returned pointer beyond the > replacement of buffer content at the next call to the same > function. I was looking at this patch, and shouldn't we worry about compatibility with plugins or utilities which look directly at what's in readRecordBuf for the record contents? Let's not forget that the contents of XLogReaderState are public. -- Michael
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера