Re: in-memory sorting

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: in-memory sorting
Дата
Msg-id 26184.1282224579@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: in-memory sorting  (Samuel Gendler <sgendler@ideasculptor.com>)
Список pgsql-performance
Samuel Gendler <sgendler@ideasculptor.com> writes:
> Answered my own question.  Cranking work_mem up to 350MB revealed that
> the in-memory sort requires more memory than the disk sort.

Yeah.  The on-disk representation of sortable data is tighter than the
in-memory representation for various reasons, mostly that we're willing
to work at making it small.  Datums aren't necessarily properly aligned
for example, and there's also palloc overhead to consider in-memory.

            regards, tom lane

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

Предыдущее
От: Alexandre de Arruda Paes
Дата:
Сообщение: Re: Fwd: Vacuum Full + Cluster + Vacuum full = non removable dead rows
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Fwd: Vacuum Full + Cluster + Vacuum full = non removable dead rows