Re: [HACKERS] ORDER BY optimisations
От | jwieck@debis.com (Jan Wieck) |
---|---|
Тема | Re: [HACKERS] ORDER BY optimisations |
Дата | |
Msg-id | m0zZeUT-000EBPC@orion.SAPserv.Hamburg.dsh.de обсуждение исходный текст |
Ответ на | Re: [HACKERS] ORDER BY optimisations (jwieck@debis.com (Jan Wieck)) |
Список | pgsql-hackers |
> 1. the plan is a Sort->IndexScan, > > 2. there is an ORDER BY clause, > > 3. the index choosen by the planner matches ALL attributes > given in the ORDER BY clause (extra indexed attributes > not in ORDER BY ignored), Ooops - sorry. Took another look at the patch and saw, that it actually does not ignore extra attributes in the index. Maybe you want to force sort suppression then too and comment out the 'return TRUE' for this case. BTW: This or an enhanced version (suppressing more stupid sort cases) is my first candidate for the v6.4.1 feature patch. Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #======================================== jwieck@debis.com (Jan Wieck) #
В списке pgsql-hackers по дате отправления: