| От | Jeff Davis |
|---|---|
| Тема | Re: Impact of table scan on shared buffers |
| Дата | |
| Msg-id | 1194993001.24251.128.camel@jdavis обсуждение исходный текст |
| Ответ на | Impact of table scan on shared buffers ("Morris Goldstein" <morris.x.goldstein@gmail.com>) |
| Список | pgsql-general |
On Tue, 2007-11-13 at 17:10 -0500, Morris Goldstein wrote:
> I suspect that the SELECT scan will tend to displace everything else
> in shared buffers, and I hope that the two forms of COPY do not. Is
> that correct?
>
In 7.4 that may be true, but in later versions it's not.
8.0+ use multiple LRU lists, and a single access of one block won't
evict a frequently-accessed block from cache. That means some of the
blocks in cache will be displaced, but generally not any
frequently-accessed pages.
In 8.3 (currently in beta), a scan of a table larger than
shared_buffers/4 will have almost no impact on shared buffers.
Regards,
Jeff Davis
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера