pgsql: Improve GIN index build's tracking of memory usage by using

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Improve GIN index build's tracking of memory usage by using
Дата
Msg-id 20071116215559.295257540F0@cvs.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Improve GIN index build's tracking of memory usage by using
GetMemoryChunkSpace, not just the palloc request size.  This brings the
allocatedMemory counter close enough to reality (as measured by
MemoryContextStats printouts) that I think we can get rid of the arbitrary
factor-of-2 adjustment that was put into the code initially.  Given the
sensitivity of GIN build to work memory size, not using as much of work
memory as we're allowed to seems a pretty bad idea.

Modified Files:
--------------
    pgsql/src/backend/access/gin:
        ginbulk.c (r1.9 -> r1.10)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/gin/ginbulk.c?r1=1.9&r2=1.10)
        gininsert.c (r1.9 -> r1.10)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/gin/gininsert.c?r1=1.9&r2=1.10)

В списке pgsql-committers по дате отправления:

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: GIN index build's allocatedMemory counter needs to be long, not
Следующее
От: dpage@pgfoundry.org (User Dpage)
Дата:
Сообщение: stackbuilder - installers: Update for Slony 1.2.12