Re: About "Our CLUSTER implementation is pessimal" patch

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: About "Our CLUSTER implementation is pessimal" patch
Дата
Msg-id 8581.1264089835@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: About "Our CLUSTER implementation is pessimal" patch  (Leonardo F <m_lists@yahoo.it>)
Ответы Re: About "Our CLUSTER implementation is pessimal" patch  (Leonardo F <m_lists@yahoo.it>)
Список pgsql-hackers
Leonardo F <m_lists@yahoo.it> writes:
>> one idea could be to actually prepare a query using SPI for "select * from table order by <cols>" and then peek
inside
>> to see which plan was generated. 

> I like that!!!
> Here's a first attempt, it looks like it's working...
> (I still have to skip non-btree indexes and expression indexes, plus
> add a ASC/DESC to the select)

By the time you make this actually work in all cases, it's probably
going to be more of a mess than the other way; not to mention that it
doesn't work *at all* without violating SPI internals.
        regards, tom lane


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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Git out of sync vs. CVS
Следующее
От: Tom Lane
Дата:
Сообщение: Re: lock_timeout GUC patch