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

From Tom Lane
Subject Re: Our CLUSTER implementation is pessimal
Date
Msg-id 9066.1220484614@sss.pgh.pa.us
Whole thread Raw
In response to Our CLUSTER implementation is pessimal  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-hackers
Gregory Stark <stark@enterprisedb.com> writes:
> There are a couple problems with this:

> a) We need some way to decide *when* to do a sort and when to do an index
> scan. The planner has all this machinery but we don't really have all the
> pieces handy to use it in a utility statement.

Why not?  You don't even need any quals when trying to cost a full-index
scan.

> b) tuplesort no longer has the pieces needed to sort whole tuples including
> visibility info. And actually even the old pieces that were removed had not
> quite the right interface and behaviour. We need to preserve t_self for the
> heap rewrite tools and we need to be able to use _bt_mkscankey_nodata() to
> generate the scan keys that match the index.

So you just broke it irredeemably for non-btree indexes, no?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [patch] GUC source file and line number]
Next
From: M2Y
Date:
Subject: Conflict resolution in Multimaster replication(Postgres-R)