Re: query produces 1 GB temp file

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: query produces 1 GB temp file
Дата
Msg-id 190.1107644463@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: query produces 1 GB temp file  (Greg Stark <gsstark@mit.edu>)
Список pgsql-performance
Greg Stark <gsstark@mit.edu> writes:
> Am I wrong? I thought the disk sort algorithm was the polyphase tape sort from
> Knuth which is always reading two tapes and writing to a third.

It is a polyphase sort, but we recycle the input "tapes" as fast as we
use them, so that the maximum disk space usage is about as much as the
data volume to sort.

            regards, tom lane

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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: query produces 1 GB temp file
Следующее
От: John A Meinel
Дата:
Сообщение: Re: query produces 1 GB temp file