Re: Get more from indices. - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Get more from indices.
Date
Msg-id CA+TgmoYT8uY9YFk1bNVJuSjxH8N+M+unfKVSS4MfzD3w=LbEkQ@mail.gmail.com
Whole thread Raw
In response to Re: Get more from indices.  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Get more from indices.
List pgsql-hackers
On Thu, Oct 31, 2013 at 10:59 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>  However, if the index is unique, wouldn't
> scanning the index produce data that actually satisfies the longer sort
> key?  It doesn't matter what the values of c,d are if there are no
> duplicates in the a,b columns.  So maybe as a separate patch, we could
> look at claiming that a unique index satisfies the entire query_pathkeys
> if it matches the first N columns of that.

That would be really spiffy.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: "MauMau"
Date:
Subject: Re: [bug fix] PostgreSQL fails to start on Windows if it crashes after tablespace creation
Next
From: Teodor Sigaev
Date:
Subject: SP-GiST bug and fix