| От | tgl@svr1.postgresql.org (Tom Lane) |
|---|---|
| Тема | pgsql-server/src backend/access/heap/heapam.c ... |
| Дата | |
| Msg-id | 20040421182427.9130BD1BABA@svr1.postgresql.org обсуждение |
| Список | pgsql-committers |
CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: tgl@svr1.postgresql.org 04/04/21 15:24:27
Modified files:
src/backend/access/heap: heapam.c
src/backend/access/index: indexam.c
src/backend/access/nbtree: nbtinsert.c nbtpage.c nbtree.c
nbtsearch.c
src/backend/executor: nodeIndexscan.c nodeSeqscan.c
nodeTidscan.c
src/include/access: heapam.h nbtree.h
Log message:
Tweak indexscan and seqscan code to arrange that steps from one page to
the next are handled by ReleaseAndReadBuffer rather than separate
ReleaseBuffer and ReadBuffer calls. This cuts the number of acquisitions
of the BufMgrLock by a factor of 2 (possibly more, if an indexscan happens
to pull successive rows from the same heap page). Unfortunately this
doesn't seem enough to get us out of the recently discussed context-switch
storm problem, but it's surely worth doing anyway.
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера