trying to study how sorting works

Поиск
Список
Период
Сортировка
От hitesh ramani
Тема trying to study how sorting works
Дата
Msg-id BAY181-W55B17D78360CF037AA0811DC080@phx.gbl
обсуждение исходный текст
Ответы Re: trying to study how sorting works  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Re: trying to study how sorting works  (Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>)
Список pgsql-hackers
Hello devs,

I'm trying to understand how sorting exactly works in Postgres, I've understood that there are two sorting mechanisms depending on the size of the data, one being qsort which is initiated if workmem is < 1024 kb and the other being external sort which is initiated in the other case. I tried to find out more material to understand how it exactly works but I'm unable to find any help material.

Moreover, I'm trying to study the code using gdb by attaching it to the pg_backend_pid and having a breakpoint at raw_parser, from where I start analyzing. Any help material or resources would be really appreciated.

Thanks.

--Hitesh

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: compiler warnings in lwlock
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Index-only scans for GiST.