pgsql: Recent changes in memory management in tuplesort.c had a problem:

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Recent changes in memory management in tuplesort.c had a problem:
Дата
Msg-id 20060310231900.B94B29DCC6F@postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Recent changes in memory management in tuplesort.c had a problem: the
case where we run low on array slots before we run low on memory is much
more probable than I had thought, and so it's important to treat each
tape fairly in that case.  To fix this, track per-tape slot allocations
just like we track per-tape space allocation.  Also, in the FINALMERGE
code path avoid scanning all the input tapes when we really only need to
read from one.  This should fix poor behavior with very large work_mem
as exhibited by Stefan Kaltenbrunner.
I didn't do anything about putting an upper bound on the number of tapes,
but maybe we should still consider that.

Modified Files:
--------------
    pgsql/src/backend/utils/sort:
        tuplesort.c (r1.64 -> r1.65)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/sort/tuplesort.c.diff?r1=1.64&r2=1.65)

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

Предыдущее
От: jwp@pgfoundry.org (James William Pye)
Дата:
Сообщение: python - pq: Raise the exception, not return.
Следующее
От: neilc@postgresql.org (Neil Conway)
Дата:
Сообщение: pgsql: Remove a few places that attempted to define INT_MAX, SCHAR_MAX,