| От | Heikki Linnakangas |
|---|---|
| Тема | Re: Avoiding unnecessary reads in recovery |
| Дата | |
| Msg-id | 46332004.2080207@enterprisedb.com обсуждение исходный текст |
| Ответ на | Re: Avoiding unnecessary reads in recovery ("Simon Riggs" <simon@2ndquadrant.com>) |
| Список | pgsql-hackers |
Simon Riggs wrote: > On Fri, 2007-04-27 at 12:22 +0100, Heikki Linnakangas wrote: >> Patch implementing that attached. I named the function "ReadOrZeroBuffer". > > We already have an API quirk similar to this: relation extension. It > seems strange to have two different kinds of special case API that are > used alongside each other in XLogReadBuffer() > > Currently if we extend by a block we say > buffer = ReadBuffer(reln, P_NEW); > > Why not just add another option, so where you use ReadOrZeroBuffer we > just say > buffer = ReadBuffer(reln, P_INIT); Because ReadOrZeroBuffer needs the block number as an argument. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера