Re: About "Our CLUSTER implementation is pessimal" patch - Mailing list pgsql-hackers

From Tom Lane
Subject Re: About "Our CLUSTER implementation is pessimal" patch
Date
Msg-id 8581.1264089835@sss.pgh.pa.us
Whole thread Raw
In response to Re: About "Our CLUSTER implementation is pessimal" patch  (Leonardo F <m_lists@yahoo.it>)
Responses Re: About "Our CLUSTER implementation is pessimal" patch
List 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 by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: Git out of sync vs. CVS
Next
From: Tom Lane
Date:
Subject: Re: lock_timeout GUC patch