Re: Composite keys

Поиск
Список
Период
Сортировка
От Claudio Freire
Тема Re: Composite keys
Дата
Msg-id CAGTBQpb1E7jQBn1S-yBCMo2w=V+iQRed-sDqNTj=cKPnYRicRg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Composite keys  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Composite keys  (Robert Haas <robertmhaas@gmail.com>)
Re: Composite keys  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
On Mon, Oct 31, 2011 at 2:08 PM, Robert Haas <robertmhaas@gmail.com> wrote:
>> Multicolumn indices on (c1, c2, ..., cn) can only be used on where
>> clauses involving c1..ck with k<n.
>
> I don't think that's true.  I believe it can be used for a query that
> only touches, say, c2.  It's just extremely inefficient.

Does postgres generate those kinds of plans?
I do not think so. I've never seen it happening.

В списке pgsql-performance по дате отправления:

Предыдущее
От: Jens Reufsteck
Дата:
Сообщение: Re: Anti join miscalculates row number?
Следующее
От: Robert Haas
Дата:
Сообщение: Re: does update of column with no relation imply a relation check of other column?