| От | Tom Lane |
|---|---|
| Тема | Re: heap vacuum & cleanup locks |
| Дата | |
| Msg-id | 21457.1320877256@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: heap vacuum & cleanup locks (Simon Riggs <simon@2ndQuadrant.com>) |
| Ответы |
Re: heap vacuum & cleanup locks
|
| Список | pgsql-hackers |
Simon Riggs <simon@2ndQuadrant.com> writes:
> heapgetpage() gets a page and a pin, but holds the pin until it reads
> the next page. Wow!
> That is both annoying and very dumb. It should hold the pin long
> enough to copy the data and then release the pin.
I don't find that anywhere near as obvious as you seem to. I think you
are trying to optimize for the wrong set of conditions.
I will also note that the behavior of holding pin for as long as we are
stopped on a particular tuple is not specific to seqscans.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера