Re: Musings

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Musings
Дата
Msg-id 15498.1020622556@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Musings  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Musings  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Musings
Следующее
От: Jack Bates
Дата:
Сообщение: STILL LACKING: CVS tag for release 7.2.1