Re: Musings - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Musings
Date
Msg-id 15498.1020622556@sss.pgh.pa.us
Whole thread Raw
In response to Re: Musings  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Musings  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I said:
> none of this works if the index isn't unique.

On the other hand --- if the index *is* unique, and we are checking
equality on all columns (a fairly easily checked condition), then we
know we should retrieve at most one visible tuple.  So, without making
any incorrect assumptions, we could terminate the indexscan after the
first successful match.  Hmm ... you might be right that there's a
cheap win to be had there.  I still think that we also need to do
something with propagating tuple deadness flags into the index, though.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Musings
Next
From: Jack Bates
Date:
Subject: STILL LACKING: CVS tag for release 7.2.1