| От | Alvaro Herrera |
|---|---|
| Тема | Re: [HACKERS] pageinspect: Hash index support |
| Дата | |
| Msg-id | 20170111142135.7zgo3vxaml5k4uwt@alvherre.pgsql обсуждение исходный текст |
| Ответ на | Re: [HACKERS] pageinspect: Hash index support (Jesper Pedersen <jesper.pedersen@redhat.com>) |
| Список | pgsql-hackers |
Jesper Pedersen wrote: > + /* > + * We copy the page into local storage to avoid holding pin on the > + * buffer longer than we must, and possibly failing to release it at > + * all if the calling query doesn't fetch all rows. > + */ > + mctx = MemoryContextSwitchTo(fctx->multi_call_memory_ctx); > + > + uargs = palloc(sizeof(struct user_args)); > + > + uargs->page = palloc(BLCKSZ); Is this necessary? I think this was copied from btreefuncs, but there is no buffer release in this code. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера