| От | Tom Lane |
|---|---|
| Тема | Re: I/O on select count(*) |
| Дата | |
| Msg-id | 6227.1210868354@sss.pgh.pa.us обсуждение |
| Ответ на | Re: I/O on select count(*) (Alvaro Herrera <alvherre@commandprompt.com>) |
| Список | pgsql-performance |
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Heikki Linnakangas escribi�:
>> We know what kind of a relation we're dealing with in ReadBuffer, so we
>> could add a flag to BufferDesc to mark heap pages.
> Hmm, I was thinking that it would need access to the catalogs to know
> where the tuples are, but that's certainly not true, so perhaps it could
> be made to work.
The issue in my mind is not so much could bgwriter physically do it
as that it's a violation of module layering. That has real
consequences, like potential for deadlocks. It'll become particularly
pressing if we go forward with the plans to get rid of the separate
dedicated buffers for pg_clog etc and have them work in the main
shared-buffer pool.
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера