Re: query produces 1 GB temp file

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: query produces 1 GB temp file
Дата
Msg-id 87mzuik4ey.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: query produces 1 GB temp file  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: query produces 1 GB temp file
Список pgsql-performance
Tom Lane <tgl@sss.pgh.pa.us> writes:

> It was 700k rows to sort, not 22k.

Oops, missed that.

> > The temporary table does need to store three copies of the records at
> > a given time, but still it sounds like an awful lot.
>
> Huh?

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.

--
greg

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: query produces 1 GB temp file
Следующее
От: Tom Lane
Дата:
Сообщение: Re: query produces 1 GB temp file